NFSv4: Fix delegation return in cases where we have to retry
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Sat, 8 May 2021 14:01:32 +0000 (10:01 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 20 Jul 2021 14:05:47 +0000 (16:05 +0200)
commit497064740406cb5de042bcf213ceb05277fcc503
treeaeb06aa576a447268abf620c4062829823b22c9d
parentb05c555c8d4d11472a7c0751c31867938e8cd420
NFSv4: Fix delegation return in cases where we have to retry

[ Upstream commit be20037725d17935ec669044bd2b15bc40c3b5ab ]

If we're unable to immediately recover all locks because the server is
unable to immediately service our reclaim calls, then we want to retry
after we've finished servicing all the other asynchronous delegation
returns on our queue.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/nfs/delegation.c
fs/nfs/delegation.h
fs/nfs/nfs4_fs.h