Whamcloud - gitweb
LU-18085 llite: use RCU to protect the dentry_data 84/55984/8
authorYang Sheng <ys@whamcloud.com>
Fri, 9 Aug 2024 16:11:14 +0000 (00:11 +0800)
committerOleg Drokin <green@whamcloud.com>
Fri, 23 Aug 2024 22:09:57 +0000 (22:09 +0000)
commit983999bda71115595df48d614ca1aaf9b746c75f
tree051cea0a696430b950fccf39cd74fa459127ce37
parent9b325fabc5cd4bf015d2640d0e3c4b61fe7e6abf
LU-18085 llite: use RCU to protect the dentry_data

The upstream has changed the rule of dentry kill since
v6.7-rc1-20-g1c18edd1b7a0. The d_release callback will
be invoked before the dentry was removed from children
list. This means the changes of d_fsdata could be seen
for others. We have already used call_rcu to handle the
release. So just apply RCU in read side to ensure access
safety.

Test-Parameters: mdtcount=4 mdscount=2   env=SANITY_EXCEPT="17e 27J 103 244a"   clientdistro=ubuntu2404 testlist=sanity
Signed-off-by: Yang Sheng <ys@whamcloud.com>
Change-Id: I58713bfbf22749d6c0a5e40f710549662248e32f
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/55984
Reviewed-by: jsimmons <jsimmons@infradead.org>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Neil Brown <neilb@suse.de>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
lustre/llite/llite_internal.h
lustre/llite/namei.c
lustre/llite/statahead.c