From: Trond Myklebust Date: Thu, 20 Mar 2025 16:45:01 +0000 (-0400) Subject: pNFS/flexfiles: Report ENETDOWN as a connection error X-Git-Tag: v6.15-rc1~50^2~10 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=aa42add73ce9b9e3714723d385c254b75814e335;p=thirdparty%2Fkernel%2Flinux.git pNFS/flexfiles: Report ENETDOWN as a connection error 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 Reviewed-by: Jeff Layton Tested-by: Jeff Layton Acked-by: Chuck Lever --- diff --git a/fs/nfs/flexfilelayout/flexfilelayout.c b/fs/nfs/flexfilelayout/flexfilelayout.c index f89fdba7289d2..61ad269c825ff 100644 --- a/fs/nfs/flexfilelayout/flexfilelayout.c +++ b/fs/nfs/flexfilelayout/flexfilelayout.c @@ -1274,6 +1274,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: