Whamcloud - gitweb
LU-8130 lu_object: use RCU to free lu_object_header 65/37965/2
authorMr NeilBrown <neilb@suse.de>
Wed, 18 Mar 2020 02:55:19 +0000 (13:55 +1100)
committerOleg Drokin <green@whamcloud.com>
Tue, 31 Mar 2020 06:59:58 +0000 (06:59 +0000)
commitb25e8a4bc86ee245be19dc05c085a2b0f4fe4a43
treeb486beb1a6534d099180a53b3451ebc68e2ecc17
parent2ddb1b57670ce239b755e8a7fb4f5cc9d6319786
LU-8130 lu_object: use RCU to free lu_object_header

Any struct containing an lu_object_header is now freed using
call_rcu() or rcu_kfree() when freed by loo_object_free.

This will allow RCU protocols to protect lookups once we
switch the lu_object cache to rhashtable in a future patch.

Signed-off-by: Mr NeilBrown <neilb@suse.de>
Change-Id: Ib0e1134ae2ac73532d6f953ff4510076f1d8a78a
Reviewed-on: https://review.whamcloud.com/37965
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Shaun Tancheff <shaun.tancheff@hpe.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
15 files changed:
Documentation/osd-api.txt
lustre/include/lu_object.h
lustre/llite/vvp_object.c
lustre/lod/lod_object.c
lustre/lov/lovsub_object.c
lustre/mdd/mdd_object.c
lustre/mdt/mdt_handler.c
lustre/mgs/mgs_handler.c
lustre/obdclass/local_storage.c
lustre/obdecho/echo_client.c
lustre/ofd/ofd_dev.c
lustre/osc/osc_object.c
lustre/osd-ldiskfs/osd_handler.c
lustre/osd-zfs/osd_object.c
lustre/osp/osp_object.c