Jeff Layton 64e6304169 nfsd: drop the nfsd_put helper
It's not safe to call nfsd_put once nfsd_last_thread has been called, as
that function will zero out the nn->nfsd_serv pointer.

Drop the nfsd_put helper altogether and open-code the svc_put in its
callers instead. That allows us to not be reliant on the value of that
pointer when handling an error.

Fixes: 2a501f55cd64 ("nfsd: call nfsd_last_thread() before final nfsd_put()")
Reported-by: Zhi Li <yieli@redhat.com>
Cc: NeilBrown <neilb@suse.de>
Signed-off-by: Jeffrey Layton <jlayton@redhat.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
2024-01-04 22:52:27 -05:00
..
2023-03-10 09:38:47 -05:00
2021-10-02 15:51:10 -04:00
2023-10-16 12:44:09 -04:00
2023-10-16 12:44:09 -04:00
2023-10-16 12:44:09 -04: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-10-16 12:44:39 -04:00
2024-01-04 22:52:27 -05:00
2024-01-04 22:52:27 -05:00
2023-10-16 12:44:14 -04:00
2023-10-16 12:44:14 -04:00