From patchwork Fri Mar 21 15:21:04 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Trond Myklebust X-Patchwork-Id: 14025654 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5C6DC1DF721 for ; Fri, 21 Mar 2025 15:21:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742570468; cv=none; b=Obo1DCqvk6Rr26BUI/gRVaskyJUWSZNfO/HaOuiRRPokQkLFu1rHdp4cS9c6qoABmOFmjRsFsbk6DGQzOa3ud3Lbgs+qdJ/fh3+aiigRRrWeqdj+Zka704412WpjXFQFLbxNA8sxQtVjxgTHZiXLnkKtK94V10Nnl0APId81kYM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742570468; c=relaxed/simple; bh=VT8B0H3UBNpAVD6YZld9Ygkj9dKbicilQ4bPR/E3oJ4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=FpOPSnGNjtJE3gPKTt2ZJYq0ERfo0a+sBxgu7u1JFqN/H7CeJvQ1mKqXHZKECLbDQ1H0XpFRXGaf16GGBcVHCv87/t31h5ypgYurF4Fj8WIKSaHzf4cEVo2u536nQ5FM21+o8mGqNF3wQAOsq4UJBqBQ93XYooLdTKoqV+/iBig= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=MLmE4U+z; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="MLmE4U+z" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E3C7FC4CEEE; Fri, 21 Mar 2025 15:21:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1742570468; bh=VT8B0H3UBNpAVD6YZld9Ygkj9dKbicilQ4bPR/E3oJ4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MLmE4U+zZRD8TNQk5fEdYaLz+uX1QrKywNSWs2MqYDz6a001rDmohYWok21UiuFk5 RkmqzgSD8j6oZkcy7j31+6BDnZoSvQ/jBpOHm6Pw2997RNY2l7PN+nMQpDYu69eP4A DDcH4S+kZy7USgJIaryM0zIIFuOpGjADn/YhTlo7XBL1fYwXeGLa0hct3osNEaa4OB HqnOWSj9/CzRq2xvdoVDIPQJ/iAPVLleor70hKYNVOKLmmP4JJYUtyRSiI4l/w9Ap8 1VzQrhgLej10MK1xdWUYAyj2hnN4kO+yVGO0IQUavSZmUFbjbMoXB2T6R/DMPZfv9T Berytb1T2LYqw== From: trondmy@kernel.org To: linux-nfs@vger.kernel.org Cc: Jeff Layton , Josef Bacik Subject: [PATCH v3 4/4] pNFS/flexfiles: Report ENETDOWN as a connection error Date: Fri, 21 Mar 2025 11:21:04 -0400 Message-ID: X-Mailer: git-send-email 2.49.0 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Trond Myklebust 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 --- fs/nfs/flexfilelayout/flexfilelayout.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/nfs/flexfilelayout/flexfilelayout.c b/fs/nfs/flexfilelayout/flexfilelayout.c index f89fdba7289d..61ad269c825f 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: