NeilBrown 7b207ccd98 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 <neilb@suse.de>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
2024-01-07 17:54:33 -05:00
..
2024-01-07 17:54:26 -05:00
2022-05-19 12:25:38 -04:00
2022-05-19 12:25:38 -04:00
2020-03-16 12:04:33 -04:00
2021-07-08 14:03:23 -04:00
2024-01-07 17:54:26 -05:00
2023-08-31 15:36:41 -07:00