]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
committerKhalid Elmously <khalid.elmously@canonical.com>
Fri, 14 Feb 2020 05:29:37 +0000 (00:29 -0500)
commit627718a1860fa468efef9dbf074632e90e70fbee
treedf45557014502909dd48a4347853ea818db28cec
parent284daea7bc10bbf3691858212d0d1db07ebdbb53
NFSv4.x: Drop the slot if nfs4_delegreturn_prepare waits for layoutreturn

BugLink: https://bugs.launchpad.net/bugs/1861934
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: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
fs/nfs/nfs4proc.c