diff options
author | Olga Kornievskaia <olga.kornievskaia@gmail.com> | 2023-01-20 19:40:20 +0100 |
---|---|---|
committer | Anna Schumaker <Anna.Schumaker@Netapp.com> | 2023-02-15 17:07:54 +0100 |
commit | 28d4411fc3b58d7ef2cd00060c068a5d90ee9700 (patch) | |
tree | 3bb4c7d3d7a2a79b2f78aced5c2aa1b594b98e35 /fs/nfs/filelayout | |
parent | Documentation: Fix sysfs path for the NFSv4 client identifier (diff) | |
download | linux-28d4411fc3b58d7ef2cd00060c068a5d90ee9700.tar.xz linux-28d4411fc3b58d7ef2cd00060c068a5d90ee9700.zip |
pNFS/filelayout: treat GETDEVICEINFO errors as layout failure
When GETDEVICEINFO call fails, return the layout and fall back to MDS.
Signed-off-by: Olga Kornievskaia <kolga@netapp.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'fs/nfs/filelayout')
-rw-r--r-- | fs/nfs/filelayout/filelayout.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/nfs/filelayout/filelayout.c b/fs/nfs/filelayout/filelayout.c index 4974cd18ca46..ce8f8934bca5 100644 --- a/fs/nfs/filelayout/filelayout.c +++ b/fs/nfs/filelayout/filelayout.c @@ -862,6 +862,8 @@ fl_pnfs_update_layout(struct inode *ino, status = filelayout_check_deviceid(lo, fl, gfp_flags); if (status) { + pnfs_error_mark_layout_for_return(ino, lseg); + pnfs_set_lo_fail(lseg); pnfs_put_lseg(lseg); lseg = NULL; } |