Whamcloud - gitweb
LU-17705 ptlrpc: replace synchronize_rcu() with rcu_barrier() 69/54669/5
authorAlex Zhuravlev <bzzz@whamcloud.com>
Thu, 4 Apr 2024 08:14:10 +0000 (11:14 +0300)
committerOleg Drokin <green@whamcloud.com>
Mon, 15 Apr 2024 16:54:51 +0000 (16:54 +0000)
commitf2868d1edfd57f81211d411728d076a10c77bcdc
tree341f045d41e89e896a549f7b3f4107fe10868f06
parentae68041334e410a9bed297e0bd2dd5bcb8d90b8c
LU-17705 ptlrpc: replace synchronize_rcu() with rcu_barrier()

synchronize_rcu() does not wait for in-flight rcu callback completion,
thus kmem_cache_free() can still race with kmem_cache_destroy().

Fixes: a9411a9856a ("LU-17076 nrs: wait for RCU completion")
Signed-off-by: Alex Zhuravlev <bzzz@whamcloud.com>
Change-Id: I2da668c06b532a41c8ce2fe681ea17cf6f3013ef
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/54669
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Shaun Tancheff <shaun.tancheff@hpe.com>
Reviewed-by: Neil Brown <neilb@suse.de>
Reviewed-by: James Simmons <jsimmons@infradead.org>
lustre/ldlm/ldlm_lockd.c
lustre/ptlrpc/nrs_orr.c