]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
pNFS: Stricter ordering of layoutget and layoutreturn
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Tue, 5 Jan 2021 11:43:45 +0000 (06:43 -0500)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 19 Feb 2021 15:44:57 +0000 (16:44 +0100)
commit8226c05291514d3b97746aad76f8affb8968ff52
treebd4073e2d750b669a83d10a5f3336a562862a72b
parent22087193f3d26f6060c67f8c784f1f8217a03dfd
pNFS: Stricter ordering of layoutget and layoutreturn

BugLink: https://bugs.launchpad.net/bugs/1914654
commit 2c8d5fc37fe2384a9bdb6965443ab9224d46f704 upstream.

If a layout return is in progress, we should wait for it to complete,
in case the layout segment we are picking up gets returned too.

Fixes: 30cb3ee299cb ("pNFS: Handle NFS4ERR_OLD_STATEID on layoutreturn by bumping the state seqid")
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: William Breathitt Gray <william.gray@canonical.com>
fs/nfs/pnfs.c