mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-07 07:08:07 +00:00
PNFS fallback to MDS if no deviceid found
If we fail to find a good deviceid while trying to pnfs instead of
propogating an error back fallback to doing IO to the MDS. Currently,
code with fals the IO with EINVAL.
Signed-off-by: Olga Kornievskaia <kolga@netapp.com>
Fixes: 8d40b0f148
("NFS filelayout:call GETDEVICEINFO after pnfs_layout_process completes"
Cc: stable@vger.kernel.org # v4.11+
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
This commit is contained in:
parent
950a578c61
commit
b1029c9bc0
1 changed files with 1 additions and 1 deletions
|
@ -904,7 +904,7 @@ fl_pnfs_update_layout(struct inode *ino,
|
||||||
status = filelayout_check_deviceid(lo, fl, gfp_flags);
|
status = filelayout_check_deviceid(lo, fl, gfp_flags);
|
||||||
if (status) {
|
if (status) {
|
||||||
pnfs_put_lseg(lseg);
|
pnfs_put_lseg(lseg);
|
||||||
lseg = ERR_PTR(status);
|
lseg = NULL;
|
||||||
}
|
}
|
||||||
out:
|
out:
|
||||||
return lseg;
|
return lseg;
|
||||||
|
|
Loading…
Add table
Reference in a new issue