Skip to content

Commit

Permalink
PNFS fallback to MDS if no deviceid found
Browse files Browse the repository at this point in the history
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 <[email protected]>
Fixes: 8d40b0f ("NFS filelayout:call GETDEVICEINFO after pnfs_layout_process completes"
Cc: [email protected] # v4.11+
Signed-off-by: Anna Schumaker <[email protected]>
  • Loading branch information
olgakorn1 authored and amschuma-ntap committed May 9, 2019
1 parent 950a578 commit b1029c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/nfs/filelayout/filelayout.c
Original file line number Diff line number Diff line change
Expand Up @@ -904,7 +904,7 @@ fl_pnfs_update_layout(struct inode *ino,
status = filelayout_check_deviceid(lo, fl, gfp_flags);
if (status) {
pnfs_put_lseg(lseg);
lseg = ERR_PTR(status);
lseg = NULL;
}
out:
return lseg;
Expand Down

0 comments on commit b1029c9

Please sign in to comment.