diff options
author | NeilBrown <[email protected]> | 2023-12-15 11:56:33 +1100 |
---|---|---|
committer | Chuck Lever <[email protected]> | 2023-12-15 10:23:52 -0500 |
commit | 1bd773b4f0c90123af19a853244be61518ae0556 (patch) | |
tree | d5893c7281336e8a863e0f3b529ee4c42eab9405 /lib/test_fortify/write_overflow-memcpy.c | |
parent | 2a501f55cd641eb4d3c16a2eab0d678693fac663 (diff) |
nfsd: hold nfsd_mutex across entire netlink operation
Rather than using svc_get() and svc_put() to hold a stable reference to
the nfsd_svc for netlink lookups, simply hold the mutex for the entire
time.
The "entire" time isn't very long, and the mutex is not often contented.
This makes way for us to remove the refcounts of svc, which is more
confusing than useful.
Reported-by: Jeff Layton <[email protected]>
Closes: https://lore.kernel.org/linux-nfs/[email protected]/T/#u
Fixes: bd9d6a3efa97 ("NFSD: add rpc_status netlink support")
Signed-off-by: NeilBrown <[email protected]>
Reviewed-by: Jeff Layton <[email protected]>
Signed-off-by: Chuck Lever <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-memcpy.c')
0 files changed, 0 insertions, 0 deletions