diff options
author | Yang Erkun <yangerkun@huawei.com> | 2024-12-25 14:59:07 +0800 |
---|---|---|
committer | Chuck Lever <chuck.lever@oracle.com> | 2025-01-06 09:37:41 -0500 |
commit | 1b10f0b603c066d81327c163a23c19f01e112366 (patch) | |
tree | 6a0092e565f9f15a2131b3b84e3709464ce2c4a3 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | c224edca7af028828e2ad866b61d731b5e72b46d (diff) |
SUNRPC: no need get cache ref when protected by rcu
rcu_read_lock/rcu_read_unlock has already provide protection for the
pointer we will reference when we call c_show. Therefore, there is no
need to obtain a cache reference to help protect cache_head.
Additionally, the .put such as expkey_put/svc_export_put will invoke
dput, which can sleep and break rcu. Stop get cache reference to fix
them all.
Fixes: ae74136b4bb6 ("SUNRPC: Allow cache lookups to use RCU protection rather than the r/w spinlock")
Suggested-by: NeilBrown <neilb@suse.de>
Signed-off-by: Yang Erkun <yangerkun@huawei.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions