summaryrefslogtreecommitdiffstats
path: root/fs/inode.c
diff options
context:
space:
mode:
authorOlga Kornievskaia <olga.kornievskaia@gmail.com>2018-06-11 21:32:06 +0200
committerTrond Myklebust <trond.myklebust@hammerspace.com>2018-06-12 14:48:04 +0200
commit93b7f7ad2018d2037559b1d0892417864c78b371 (patch)
tree381b44b5f8ec0bbc614368cd3349a4e9f84f32f5 /fs/inode.c
parentNFSv4.1: Fix the client behaviour on NFS4ERR_SEQ_FALSE_RETRY (diff)
downloadlinux-93b7f7ad2018d2037559b1d0892417864c78b371.tar.xz
linux-93b7f7ad2018d2037559b1d0892417864c78b371.zip
skip LAYOUTRETURN if layout is invalid
Currently, when IO to DS fails, client returns the layout and retries against the MDS. However, then on umounting (inode eviction) it returns the layout again. This is because pnfs_return_layout() was changed in commit d78471d32bb6 ("pnfs/blocklayout: set PNFS_LAYOUTRETURN_ON_ERROR") to always set NFS_LAYOUT_RETURN_REQUESTED so even if we returned the layout, it will be returned again. Instead, let's also check if we have already marked the layout invalid. Signed-off-by: Olga Kornievskaia <kolga@netapp.com> Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'fs/inode.c')
0 files changed, 0 insertions, 0 deletions