mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 02:50:49 +09:00
NFS/pNFS: Report EINVAL errors from connect() to the server
[ Upstream commitdd7d7ee3ba] 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:dd52128afd("NFSv4.1/pnfs Ensure flexfiles reports all connection related errors") Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
edd1f06145
commit
13acbca81e
@@ -1235,6 +1235,7 @@ static void ff_layout_io_track_ds_error(struct pnfs_layout_segment *lseg,
|
|||||||
case -EPFNOSUPPORT:
|
case -EPFNOSUPPORT:
|
||||||
case -EPROTONOSUPPORT:
|
case -EPROTONOSUPPORT:
|
||||||
case -EOPNOTSUPP:
|
case -EOPNOTSUPP:
|
||||||
|
case -EINVAL:
|
||||||
case -ECONNREFUSED:
|
case -ECONNREFUSED:
|
||||||
case -ECONNRESET:
|
case -ECONNRESET:
|
||||||
case -EHOSTDOWN:
|
case -EHOSTDOWN:
|
||||||
|
|||||||
Reference in New Issue
Block a user