NFSD: send OP_CB_RECALL_ANY to clients when number of delegations reaches its limit
authorDai Ngo <dai.ngo@oracle.com>
Sun, 3 Mar 2024 22:23:02 +0000 (14:23 -0800)
committerChuck Lever <chuck.lever@oracle.com>
Tue, 5 Mar 2024 15:22:33 +0000 (10:22 -0500)
commitbad4c585ccaaf53c23fbf2b221b88c24576a80fd
tree06c42d7f7be272cb62ab51fb3c9940c0ac54e61a
parent7d5a352ccc4f5c625ce3ee37d7f883dad266127c
NFSD: send OP_CB_RECALL_ANY to clients when number of delegations reaches its limit

The NFS server should ask clients to voluntarily return unused
delegations when the number of granted delegations reaches the
max_delegations. This is so that the server can continue to
grant delegations for new requests.

Signed-off-by: Dai Ngo <dai.ngo@oracle.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Tested-by: Chen Hanxiao <chenhx.fnst@fujitsu.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/nfs4state.c