NeilBrown 18e4cf9155 nfsd: Simplify code around svc_exit_thread() call in nfsd()
Previously a thread could exit asynchronously (due to a signal) so some
care was needed to hold nfsd_mutex over the last svc_put() call.  Now a
thread can only exit when svc_set_num_threads() is called, and this is
always called under nfsd_mutex.  So no care is needed.

Not only is the mutex held when a thread exits now, but the svc refcount
is elevated, so the svc_put() in svc_exit_thread() will never be a final
put, so the mutex isn't even needed at this point in the code.

Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
2023-08-29 17:45:22 -04:00
..
2023-08-29 17:45:22 -04:00
2023-03-10 09:38:47 -05:00
2023-02-20 11:10:38 -08:00
2023-02-22 14:21:40 -08:00
2023-02-22 14:21:40 -08:00
2023-08-29 17:45:22 -04:00
2023-08-29 17:45:22 -04:00
2023-08-29 17:45:22 -04:00
2023-06-11 16:37:46 -04:00