diff options
author | Olga Kornievskaia <olga.kornievskaia@gmail.com> | 2018-06-11 15:32:06 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-08-03 07:47:33 +0200 |
commit | 3f9e388d1dba44cf7c43c3dd16543bbbd57119c5 (patch) | |
tree | d66d4999d0a8ed18ef2f030f9b05ea6a8b180e9c /kernel/gcov | |
parent | 0b13d05c52def309a5a9ba6400cb1ff7953053c4 (diff) | |
download | linux-stable-3f9e388d1dba44cf7c43c3dd16543bbbd57119c5.tar.gz linux-stable-3f9e388d1dba44cf7c43c3dd16543bbbd57119c5.tar.bz2 linux-stable-3f9e388d1dba44cf7c43c3dd16543bbbd57119c5.zip |
skip LAYOUTRETURN if layout is invalid
[ Upstream commit 93b7f7ad2018d2037559b1d0892417864c78b371 ]
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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel/gcov')
0 files changed, 0 insertions, 0 deletions