diff options
| author | Dai Ngo <dai.ngo@oracle.com> | 2025-01-30 11:01:27 -0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-02-21 14:01:14 +0100 |
| commit | cedfbb92cf97a6bff3d25633001d9c44442ee854 (patch) | |
| tree | e492f76a6d90dc1ae6a59a181d86c3abbd87adad /scripts/patch-kernel | |
| parent | f8d871523142f7895f250a856f8c4a4181614510 (diff) | |
| download | linux-cedfbb92cf97a6bff3d25633001d9c44442ee854.tar.gz linux-cedfbb92cf97a6bff3d25633001d9c44442ee854.tar.bz2 linux-cedfbb92cf97a6bff3d25633001d9c44442ee854.zip | |
NFSD: fix hang in nfsd4_shutdown_callback
commit 036ac2778f7b28885814c6fbc07e156ad1624d03 upstream.
If nfs4_client is in courtesy state then there is no point to send
the callback. This causes nfsd4_shutdown_callback to hang since
cl_cb_inflight is not 0. This hang lasts about 15 minutes until TCP
notifies NFSD that the connection was dropped.
This patch modifies nfsd4_run_cb_work to skip the RPC call if
nfs4_client is in courtesy state.
Signed-off-by: Dai Ngo <dai.ngo@oracle.com>
Fixes: 66af25799940 ("NFSD: add courteous server support for thread with only delegation")
Cc: stable@vger.kernel.org
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions
