diff options
| author | Jeff Layton <[email protected]> | 2024-01-03 13:36:52 +0000 |
|---|---|---|
| committer | Chuck Lever <[email protected]> | 2024-01-05 03:52:27 +0000 |
| commit | 64e6304169f1e1f078e7f0798033f80a7fb0ea46 (patch) | |
| tree | 80e43d184be307d43014ef9dcd54338d524cf762 /lib/timerqueue.c | |
| parent | SUNRPC: Revert 5f7fc5d69f6e92ec0b38774c387f5cf7812c5806 (diff) | |
| download | kernel-64e6304169f1e1f078e7f0798033f80a7fb0ea46.tar.gz kernel-64e6304169f1e1f078e7f0798033f80a7fb0ea46.zip | |
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 <[email protected]>
Cc: NeilBrown <[email protected]>
Signed-off-by: Jeffrey Layton <[email protected]>
Signed-off-by: Chuck Lever <[email protected]>
Diffstat (limited to 'lib/timerqueue.c')
0 files changed, 0 insertions, 0 deletions
