]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
NFSv4.x: Drop the slot if nfs4_delegreturn_prepare waits for layoutreturn
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Wed, 13 Nov 2019 08:39:36 +0000 (09:39 +0100)
committerPaolo Pisati <paolo.pisati@canonical.com>
Thu, 30 Jan 2020 15:24:56 +0000 (16:24 +0100)
commitfeac4ab2d1e7af7fff84d407d72bc90d6e8fbdbc
tree18d09b4c0f73b8b8babc8c47f42a789d14546050
parentc85ff62ef944eed80497aa01adf6fcc8e049823a
NFSv4.x: Drop the slot if nfs4_delegreturn_prepare waits for layoutreturn

BugLink: https://bugs.launchpad.net/bugs/1861085
commit 5326de9e94bedcf7366e7e7625d4deb8c1f1ca8a upstream.

If nfs4_delegreturn_prepare needs to wait for a layoutreturn to complete
then make sure we drop the sequence slot if we hold it.

Fixes: 1c5bd76d17cc ("pNFS: Enable layoutreturn operation for return-on-close")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
fs/nfs/nfs4proc.c