sst-linux/fs/nfsd
Chuck Lever 14a6b65c83 NFSD: Skip sending CB_RECALL_ANY when the backchannel isn't up
commit 8a388c1fabeb6606e16467b23242416c0dbeffad upstream.

NFSD sends CB_RECALL_ANY to clients when the server is low on
memory or that client has a large number of delegations outstanding.

We've seen cases where NFSD attempts to send CB_RECALL_ANY requests
to disconnected clients, and gets confused. These calls never go
anywhere if a backchannel transport to the target client isn't
available. Before the server can send any backchannel operation, the
client has to connect first and then do a BIND_CONN_TO_SESSION.

This patch doesn't address the root cause of the confusion, but
there's no need to queue up these optional operations if they can't
go anywhere.

Fixes: 44df6f439a17 ("NFSD: add delegation reaper to react to low memory condition")
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Cc: stable@vger.kernel.org
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-04-10 14:33:43 +02:00
..
acl.h
auth.c
auth.h
blocklayout.c
blocklayoutxdr.c
blocklayoutxdr.h
cache.h nfsd: make all of the nfsd stats per-network namespace 2024-08-19 06:00:05 +02:00
current_stateid.h
export.c nfsd: make sure exp active before svc_export_show 2024-12-14 19:54:16 +01:00
export.h NFSD: Fix frame size warning in svc_export_parse() 2024-08-19 06:00:04 +02:00
fault_inject.c
filecache.c nfsd: add list_head nf_gc to struct nfsd_file 2025-01-23 17:17:17 +01:00
filecache.h nfsd: add list_head nf_gc to struct nfsd_file 2025-01-23 17:17:17 +01:00
flexfilelayout.c
flexfilelayoutxdr.c
flexfilelayoutxdr.h
idmap.h
Kconfig
lockd.c
Makefile
netns.h NFSD: Limit the number of concurrent async COPY operations 2024-11-22 15:37:32 +01:00
nfs2acl.c nfsd: clear acl_access/acl_default after releasing them 2025-02-21 13:49:55 +01:00
nfs3acl.c nfsd: clear acl_access/acl_default after releasing them 2025-02-21 13:49:55 +01:00
nfs3proc.c
nfs3xdr.c
nfs4acl.c
nfs4callback.c NFSD: fix hang in nfsd4_shutdown_callback 2025-02-21 13:49:56 +01:00
nfs4idmap.c nfsd: call cache_put if xdr_reserve_space returns NULL 2024-10-17 15:21:08 +02:00
nfs4layouts.c
nfs4proc.c NFSD: Fix nfsd4_shutdown_copy() 2024-12-14 19:53:48 +01:00
nfs4recover.c NFSD: Cap the number of bytes copied by nfs4_reset_recoverydir() 2024-12-14 19:53:47 +01:00
nfs4state.c NFSD: Skip sending CB_RECALL_ANY when the backchannel isn't up 2025-04-10 14:33:43 +02:00
nfs4xdr.c NFSD: Fix NFSv4's PUTPUBFH operation 2024-10-17 15:21:58 +02:00
nfscache.c nfsd: make all of the nfsd stats per-network namespace 2024-08-19 06:00:05 +02:00
nfsctl.c nfsd: drop the nfsd_put helper 2024-08-29 17:30:53 +02:00
nfsd.h nfsd: drop the nfsd_put helper 2024-08-29 17:30:53 +02:00
nfsfh.c nfsd: make all of the nfsd stats per-network namespace 2024-08-19 06:00:05 +02:00
nfsfh.h
nfsproc.c
nfssvc.c nfsd: call nfsd_last_thread() before final nfsd_put() 2024-08-29 17:30:52 +02:00
nfsxdr.c
pnfs.h
state.h
stats.c nfsd: make svc_stat per-network namespace instead of global 2024-08-19 06:00:05 +02:00
stats.h nfsd: make svc_stat per-network namespace instead of global 2024-08-19 06:00:05 +02:00
trace.c
trace.h NFSD: Replace nfsd_prune_bucket() 2024-08-19 06:00:04 +02:00
vfs.c nfsd: map the EBADMSG to nfserr_io to avoid warning 2024-10-17 15:21:58 +02:00
vfs.h
xdr3.h
xdr4.h NFSD: Limit the number of concurrent async COPY operations 2024-11-22 15:37:32 +01:00
xdr4cb.h
xdr.h