]> git.baikalelectronics.ru Git - kernel.git/commit
NFSv4.x: Don't return NFS4ERR_NOMATCHING_LAYOUT if we're unmounting
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Thu, 15 Apr 2021 19:09:41 +0000 (15:09 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Fri, 16 Apr 2021 12:50:21 +0000 (08:50 -0400)
commit76d7183ced8e4f4e12b9d6aedd7a2c3f49aea6a0
treefae2002afb8c5e04aeb9f073b8e0ef31e696caa8
parent686ccd0407c829864d602b9558bd60b4275d97f0
NFSv4.x: Don't return NFS4ERR_NOMATCHING_LAYOUT if we're unmounting

If the NFS super block is being unmounted, then we currently may end up
telling the server that we've forgotten the layout while it is actually
still in use by the client.
In that case, just assume that the client will soon return the layout
anyway, and so return NFS4ERR_DELAY in response to the layout recall.

Fixes: cdd4e1667b4b ("NFSv4/pnfs: Clean up nfs_layout_find_inode()")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/callback_proc.c