diff options
| author | NeilBrown <[email protected]> | 2023-12-15 00:56:32 +0000 |
|---|---|---|
| committer | Chuck Lever <[email protected]> | 2024-01-07 22:54:33 +0000 |
| commit | 7b207ccd983350a5dedd132b57c666186dd02a7c (patch) | |
| tree | c953afe0aee7eb0e2608ac61c67dfda73c480e23 /net/unix/garbage.c | |
| parent | SUNRPC: remove printk when back channel request not found (diff) | |
| download | kernel-7b207ccd983350a5dedd132b57c666186dd02a7c.tar.gz kernel-7b207ccd983350a5dedd132b57c666186dd02a7c.zip | |
svc: don't hold reference for poolstats, only mutex.
A future patch will remove refcounting on svc_serv as it is of little
use.
It is currently used to keep the svc around while the pool_stats file is
open.
Change this to get the pointer, protected by the mutex, only in
seq_start, and the release the mutex in seq_stop.
This means that if the nfsd server is stopped and restarted while the
pool_stats file it open, then some pool stats info could be from the
first instance and some from the second. This might appear odd, but is
unlikely to be a problem in practice.
Signed-off-by: NeilBrown <[email protected]>
Reviewed-by: Jeff Layton <[email protected]>
Signed-off-by: Chuck Lever <[email protected]>
Diffstat (limited to 'net/unix/garbage.c')
0 files changed, 0 insertions, 0 deletions
