Skip to contentSkip to conversation

NFS/pNFS: Report EINVAL errors from connect() to the server

PATCH New [email protected] 1 participant 1 message Sep 4, 2023

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

PATCH 1/1 NFS/pNFS: Report EINVAL errors from connect() to the server

From: Trond Myklebust <[email protected]>

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 dd52128afdde ("NFSv4.1/pnfs Ensure flexfiles reports all connection related errors")
---
 fs/nfs/flexfilelayout/flexfilelayout.c | 1 +
 1 file changed, 1 insertion(+)
fs/nfs/flexfilelayout/flexfilelayout.c +1 -0
index 7deb3cd76abe..a1dc33864906 100644
@@ -1235,6 +1235,7 @@ static void ff_layout_io_track_ds_error(struct pnfs_layout_segment *lseg,
 		case -EPFNOSUPPORT:
 		case -EPROTONOSUPPORT:
 		case -EOPNOTSUPP:
+		case -EINVAL:
 		case -ECONNREFUSED:
 		case -ECONNRESET:
 		case -EHOSTDOWN:
Signature · 1 line
2.41.0