]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
pNFS/flexfiles: Report ENETDOWN as a connection error
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Thu, 20 Mar 2025 16:45:01 +0000 (12:45 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Jun 2025 12:36:59 +0000 (14:36 +0200)
[ Upstream commit aa42add73ce9b9e3714723d385c254b75814e335 ]

If the client should see an ENETDOWN when trying to connect to the data
server, it might still be able to talk to the metadata server through
another NIC. If so, report the error.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Tested-by: Jeff Layton <jlayton@kernel.org>
Acked-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/nfs/flexfilelayout/flexfilelayout.c

index 1af0b8ad83f2d0069970efb196ae6c80ec672e01..ce9c2d1f54ae0e4af10675285136d65254e53710 100644 (file)
@@ -1260,6 +1260,7 @@ static void ff_layout_io_track_ds_error(struct pnfs_layout_segment *lseg,
                case -ECONNRESET:
                case -EHOSTDOWN:
                case -EHOSTUNREACH:
+               case -ENETDOWN:
                case -ENETUNREACH:
                case -EADDRINUSE:
                case -ENOBUFS: