Skip to content

Commit dd7d7ee

Browse files
Trond Myklebustamschuma-ntap
authored andcommitted
NFS/pNFS: Report EINVAL errors from connect() to the server
With IPv6, connect() can occasionally return EINVAL if a route is unavailable. If this happens during I/O to a data server, we want to report it using LAYOUTERROR as an inability to connect. Fixes: dd52128 ("NFSv4.1/pnfs Ensure flexfiles reports all connection related errors") Signed-off-by: Trond Myklebust <[email protected]> Signed-off-by: Anna Schumaker <[email protected]>
1 parent b11243f commit dd7d7ee

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/nfs/flexfilelayout/flexfilelayout.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1235,6 +1235,7 @@ static void ff_layout_io_track_ds_error(struct pnfs_layout_segment *lseg,
12351235
case -EPFNOSUPPORT:
12361236
case -EPROTONOSUPPORT:
12371237
case -EOPNOTSUPP:
1238+
case -EINVAL:
12381239
case -ECONNREFUSED:
12391240
case -ECONNRESET:
12401241
case -EHOSTDOWN:

0 commit comments

Comments
 (0)