From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 944D54C9566 for ; Thu, 4 Jun 2026 20:24:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780604647; cv=none; b=BcoX6tawRIeYM6vZhRQTHHzMQcoLXX2dAHmgzDOwTvRieaxo6pLs/9FdXYBIW1r4sq+GafIdl1/H5Pfr/8a5dXxiywzEBtABfnfRwCB6DOEuEghPKawjj/gekA9l6yDzz13vgdSPlQrVMAurSMjHKR0EmRgD7u8DaBHSo7/yXTk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780604647; c=relaxed/simple; bh=6as2mR1uyRlxfL7w2kAmCeiTzCnH6OunbeyaC3ok5kk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=C0arMIgiNl+lMu3iblvFoLVJtxNZeg2SpkYCKozCjxbtcRNEbr9YrgqeQTVDleeux6HZ99rR/f+CBbTuYFPra8vT0HrOAbGIYO8aG0BFW5L4l3VXT+aDqwf9iIberwALlmRV+lw8lTwYwFyIzVIEPKLP8dFo7GNVq3ukxl4iYqk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Km0TEyby; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Km0TEyby" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0408A1F00893; Thu, 4 Jun 2026 20:24:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1780604645; bh=6Ln41w3VsViuanLSn3qI4d5vuuGcX8TtAOuyiMxrCmQ=; h=From:To:Cc:Subject:Date; b=Km0TEybyHXER3fBu5qo6zPZ3lYB8rRQmIwUvCwyeHVGxnaH1uzm7YtwiOT4k9ZzK/ vkZ9tx9E9gBcfUAujg3cdOPvSSLmOMoMyWY8QTEqLnOHitMXcY3FCriCKhQziEO1E2 SCf48CO/sSqzuLmzvP+GgPg6NE+2V7mi1WLTemtJwIIYt9yexP+E+2K9Xak15kAzui 2I4XPVZRKdJELfo++zDfSdLM+KxoLF24gy0F58n/yMgSDsFSSCJNvkFH/mxZQXgx/u /Ks71B21K+gyuuzFD6MGPYlKoKxfyUCRGvrKQgeNs45HjITFCYW/NvMgMDdezyDBV4 CYQF7ecjcv/5w== From: Mike Snitzer To: Trond Myklebust , Anna Schumaker Cc: linux-nfs@vger.kernel.org Subject: [PATCH 0/2] NFSv4/flexfiles: fix unwanted in-band IO fallback from DS to MDS Date: Thu, 4 Jun 2026 16:24:01 -0400 Message-ID: <20260604202403.20856-1-snitzer@kernel.org> X-Mailer: git-send-email 2.44.0 Precedence: bulk X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If FF_FLAGS_NO_IO_THRU_MDS flag is set then NFSv4 flexfiles should never fallback to trying to issue IO directly to the MDS. These patches fix 2 locations where FF_FLAGS_NO_IO_THRU_MDS should inform the flexfiles client's behavior but it isn't considered. A Hammerspace test that caused the time between layout return and get to be much longer widened exposure for unwanted in-band IO to be issued by flexfiles. The test allowed for these fixes to be developed and the test now passes. All review appreciated. Thanks, Mike Mike Snitzer (2): NFSv4/flexfiles: honor FF_FLAGS_NO_IO_THRU_MDS on fatal DS connect errors NFSv4/flexfiles: honor FF_FLAGS_NO_IO_THRU_MDS in pg_get_mirror_count_write fs/nfs/flexfilelayout/flexfilelayout.c | 29 ++++++++++++++++++++++++++ fs/nfs/flexfilelayout/flexfilelayout.h | 16 ++++++++++++++ 2 files changed, 45 insertions(+) -- 2.44.0