diff options
author | 2022-10-04 15:41:10 -0400 | |
---|---|---|
committer | 2022-10-05 10:57:48 -0400 | |
commit | 243a5263014a30436c93ed3f1f864c1da845455e (patch) | |
tree | a2acbd3c6462a095ec6695265b976fbbc8596ef2 /scripts/generate_rust_analyzer.py | |
parent | nfsd: fix nfsd_file_unhash_and_dispose (diff) | |
download | wireguard-linux-243a5263014a30436c93ed3f1f864c1da845455e.tar.xz wireguard-linux-243a5263014a30436c93ed3f1f864c1da845455e.zip |
nfsd: rework hashtable handling in nfsd_do_file_acquire
nfsd_file is RCU-freed, so we need to hold the rcu_read_lock long enough
to get a reference after finding it in the hash. Take the
rcu_read_lock() and call rhashtable_lookup directly.
Switch to using rhashtable_lookup_insert_key as well, and use the usual
retry mechanism if we hit an -EEXIST. Rename the "retry" bool to
open_retry, and eliminiate the insert_err goto target.
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions