🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #8552

[PATCH v2 3/6] NFSD: Document per-export read_io= and write_io= options

#8552
From: Jeff Layton
Date: Thu, 29 Oct 2026 12:05
51 lines
10784 bytes
Describe the new export options and their precedence over the global
debugfs knobs.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
---
 Documentation/filesystems/nfs/nfsd-io-modes.rst | 28 +++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/Documentation/filesystems/nfs/nfsd-io-modes.rst b/Documentation/filesystems/nfs/nfsd-io-modes.rst
index 7b186201c6b6..1ad30518c234 100644
--- a/Documentation/filesystems/nfs/nfsd-io-modes.rst
+++ b/Documentation/filesystems/nfs/nfsd-io-modes.rst
@@ -41,6 +41,34 @@ corresponding IO operation's debugfs interface, e.g.::
 If you experiment with NFSD's IO modes on a recent kernel and have
 interesting results, please report them to linux-nfs@vger.kernel.org
 
+NFSD PER-EXPORT IO MODES
+========================
+
+In addition to the global debugfs knobs above, the IO mode may be set
+independently for each export via the ``read_io=`` and ``write_io=``
+export options, e.g.::
+
+  /srv/data  client(ro,read_io=direct,write_io=dontcache)
+
+Each option accepts one of ``buffered``, ``dontcache``, or ``direct``,
+with the same meanings as the corresponding debugfs values.
+
+An export without an explicit ``read_io=`` (or ``write_io=``) setting
+follows the global ``io_cache_read`` (or ``io_cache_write``) knob, so
+the effective default for both reads and writes remains buffered IO.
+An explicit per-export setting pins that export's IO mode regardless
+of the global knob.
+
+NFSD uses splice only for READs whose effective IO mode is
+``buffered``. The ``disable-splice-read`` debugfs knob turns splice off
+for all exports, but changes neither the global nor any per-export IO
+mode.
+
+The per-export settings are reported in
+/proc/net/rpc/nfsd.export/content, e.g.::
+
+  /srv/data  client(...,read_io=direct,write_io=dontcache)
+
 NFSD DONTCACHE
 ==============
 

-- 
2.56.0
Technical Details
Message-ID: <20261029-export-iomode-v2-3-fe8ec6251a36@kernel.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-353282-linux-kernel-netdev=dewy.ru
References: <20261029-export-iomode-v2-0-fe8ec6251a36@kernel.org>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-353282-linux-kernel-netdev=dewy.ru
From: jlayton@kernel.org (Jeff Layton)
Newsgroups: linux.kernel.netdev
Subject: [PATCH v2 3/6] NFSD: Document per-export read_io= and write_io=
 options
Date: Thu, 29 Oct 2026 08:05:16 -0400
Organization: Usenet Network
Message-ID: <20261029-export-iomode-v2-3-fe8ec6251a36@kernel.org>
References: <20261029-export-iomode-v2-0-fe8ec6251a36@kernel.org>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network;
	logging-data="2001958"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:VIZBuOSDAfuBvlbF07PIxJp0uTY= sha256:I6QrMnu/MD0qkVNsWT/YPm2uNAG21ftux/Yzfy1dH08=
	sha1:01NXyXz1TyGMinV4d4+FIueYm8o= sha256:ROPNB9aTf1xqJp11VAl8KiIJjs3WsFgSdHgQveAyj+U=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id 65B5F125C65; Thu, 29 Oct 2026 15:07:25 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.401
X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1,
	DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=kernel.org
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id WsdzsKFAlkr0;
	Thu, 29 Oct 2026 15:07:23 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-353282-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id D1084125C64; Thu, 29 Oct 2026 15:07:14 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sea.lore.kernel.org (Postfix) with ESMTP id 9387F29192; Thu, 29 Oct 2026 12:05:44 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1793275543;
	b=WZVnt7itqGWLR0r3iz8BvtiFeBUuPgdHK44AHGT7LR8P9sbvh+LzQ9zlfaAH5pg+ABqW
	 /umpNW3aOXQ+j2SbTgGYewujKbw+g3zUqZJ47QKIU5+9zHofAcLhgj/KvMupzLpNw7Fkm
	 YKnnXyjj6eHY3/uJoKutyDyT2LRudhBIWV8zKrlbyOchMio4Ax8rytXZDsLwpjZY6LSur
	 ktd+1H/RjiR5iqSUnn71TIye+tQdaGJ4UKmSIFTR2+jCvg4ZduN1QYJDZbZ1HhfF6t1Dj
	 b2YzerWqw3Q8k+C8DsBXOzgGZw2S/XBaYg0ICOWWxkspFc3DC00IWToSc1HrA6H68EA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793275543;
	h=X-Original-To:Received:Received:DKIM-Signature:From:Date:Subject:
	 X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
	 List-Unsubscribe:List-Owner:Precedence:MIME-Version:Content-Type:
	 Content-Transfer-Encoding:Message-Id:References:In-Reply-To:To:Cc:
	 X-Mailer:X-Developer-Signature:X-Developer-Key;
	bh=VKf17k28DUXX5KJP/n7F4jiYDpTVBBx+hs/tipvoCTk=;
	b=dlAfB4UXl49K/HkrV0J6hzSzfQZ6WZi52eIQi6uIk89f/AOs6oGuWLJYV7/7aiFP0MX6
	 LYjtns8N2BX9C5t75olSpX5oHStrE3/B29a6HHXu5f0Z2lwd7Q8BNibXUxptCeeTngsZf
	 6qduZX7yiUbsByo/Hevr/5Ahx9zUuKvY5+98Cb80xjCMMDSr5t5tvSKx4lK97jdH4JnJA
	 Zgu15jKTdn/9+sHNBad4fNZJnxywOyWOSYoCxqeK0GoEWhvWJZ4JKSIkpBWAJIVKgdyNn
	 K7JfEHtugLc4WVl+qFUTUXR0gyPzOyMjFcKaiQMENHfZGytcQdFoH1xfqBy+bD+bxAA==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b="nX/Or1RM";
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 81717606A32D;
	Thu, 29 Oct 2026 12:05:43 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=nX/Or1RM
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1793275542;
	b=l9WT6qvOeRAoqHDjTZTJvYxQ1pKa1FPtZIOgK7b3pINl+t7SnFzwD6IqS2GStgHDcLJq
	 iY0558iicXl5vNyK6v15MFnl0mxdZEkRj8o0XtWFvRbtJPTRtwFVO55Njmts4gHzIfh+z
	 WRHHwCWod5jBpjsQbpaMPIdgkTxxu1kg7WCsBrF+41Wa09ke+d5mpYjJOLm7kiuBAISxU
	 ayX9dBI6Kxp+dDnorUJGk0/gSeX4jcENSj3qhdPZv4/q2f5mUwOuuQBjg/ci/ps6opPiN
	 8SWyV4N7onYDi2cmuXRLM+C+YuN5Q/vntzQKvIxDBmOrAOpP1z/aEAyWlVcrM+4Dxow==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793275542;
	h=Received:DKIM-Signature:From:Date:Subject:MIME-Version:Content-Type:
	 Content-Transfer-Encoding:Message-Id:References:In-Reply-To:To:Cc:
	 X-Mailer:X-Developer-Signature:X-Developer-Key;
	bh=VKf17k28DUXX5KJP/n7F4jiYDpTVBBx+hs/tipvoCTk=;
	b=ZBuruxaRtlcO1j24EczN6MsiwPa/hEeBZXx48MSVitKMtTJJLXIiM2QhWH5XahgTeQEp
	 /ql3bRh/yWcgin9YXeaZQZgj27o699HCIaCLatwVGMUge09xUuNHwkYUONtkH+uFEoze7
	 OlgQb9THk6nAcfE1DGvcNDTccHA5BLgmv8kL0XxlhNAkxugyPaeSG4cj5/kaLYEVOSMWS
	 wmPJiPiJrdGy967pEyr8/ttW2kARfzQRgK8WrmlGGcKu8W+n9uLnffAqDw5ONSd5nlCVT
	 YzFfaHBur+hu9r268DFJvfV3sEJgWmUTVBFa438fxRUscn7LatFRv3Yr/IfRu9T+R3g==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b="nX/Or1RM";
	arc=none smtp.remote-ip=100.103.45.18
X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 60BC7606A339;
	Thu, 29 Oct 2026 12:05:42 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8415D1F031E4;
	Thu, 29 Oct 2026 12:05:40 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1793275542;
	bh=VKf17k28DUXX5KJP/n7F4jiYDpTVBBx+hs/tipvoCTk=;
	h=From:Date:Subject:References:In-Reply-To:To:Cc;
	b=nX/Or1RMnEOBqdjsRWYfHoB5Zfn2Dk7hQs0K29Ogq2QxOeywb1+tY+UvtDkKqwtpv
	 z0mC/YEMTK+WXt/1Mq4IcplUPcLzLkR5DXNwaN7rSLWSmY0TCr2nfkRAP7KqS77DMs
	 nWlEMYQS/gMuFbW7z1/Lb/3BgAX1xedJQrkpCLaqAmErSmAok0tHcfseMOPfGp7d07
	 +QfFU+VjjDv29jQEuqJeBEH21cry1N2jXS2QeDZUEuPHu+dEgCdZe1jc4oO85WTpi6
	 IpBRGI0KTYKcdhZnPnDotghW+gpmejClUltGV4XEIU4BWhnsSbPLQrSrEwhA+vp5bd
	 hULyQ0Mx+MkOQ==
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-In-Reply-To: <20261029-export-iomode-v2-0-fe8ec6251a36@kernel.org>
X-Cc: Steve Dickson <steved@redhat.com>, netdev@vger.kernel.org, 
 linux-kernel@vger.kernel.org, linux-nfs@vger.kernel.org, 
 linux-doc@vger.kernel.org, Jeff Layton <jlayton@kernel.org>
X-Mailer: b4 0.14.3
X-Developer-Signature: v=1; a=openpgp-sha256; l=1904; i=jlayton@kernel.org;
 h=from:subject:message-id; bh=uVxjSKXh7rDt6GD/1c2zJVhX3GX9a3jg3IMlYe2NeaI=;
 b=owEBbQKS/ZANAwAKAQAOaEEZVoIVAcsmYgBq4zaOO7z8Ny0QSCNO1/be/4mZWWlCJvMKxCkge
 GvHvoGMP3+JAjMEAAEKAB0WIQRLwNeyRHGyoYTq9dMADmhBGVaCFQUCauM2jgAKCRAADmhBGVaC
 FWtyD/4s2YrNRkkcyHR5nmuCu5XiVuz9fUyRN3pe2dQvqQ9W8H8brlfKkMRr+yo+hEsPq53RHwl
 DuG7lKPzGK3gW6vhgQTcw3htNfSijoxrDkuwIp8TkhUigJxCGZozoJycv7UAh5ONPer3LUUXJNK
 GVKRJSO4gbVbBOF1hWi11VNNSP2pf91grhT3BiDuuMcnHiE41OING5x2OE4AythsD2hX7v6Uk9D
 28r/V7WOAwNIwBWIKAi5jV+x0AkGWRCTpoq/Ch3aapGGh3r7XMXNffxkUnUewI13DglJyva40NC
 gkeurjBOxWaBb3uqfrhRl3S+FN4eC434ivPuvJqTMqhZswPGFXV611VNqgNij2KE0cJvRb9W+eB
 lV3OFRqy8ugpIIn7sPVNn1/hy3rIiK1evxmd0d/juPeRQWR0GTB+kMet4NLbkvlygq5UKUBwJ/x
 KHGTaNmpQkRgoC5NhF2CyR+0hsFm+YPymKkl003ox5sR+M4rIcpDH5BlhjDfHr9CStfyoizNEk3
 QsYYIrkd0rX58WGjnRFdbDO29YaTK9d86gjmnZwaH/DE0mGyj50rEJVcP9pdLeqfXFgFwf19IGK
 wxYznDp6gk4goS4ZYV4oDRuBl4AjBQ5gllDO/ilWD2YxVUG+P1BTR3cnBY2xVNkBIx7MAgM32Aq
 y0mHU2MEN40mM+A==
X-Developer-Key: i=jlayton@kernel.org; a=openpgp;
 fpr=4BC0D7B24471B2A184EAF5D3000E684119568215