🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #12207

Re: [PATCH] splice, net: avoid MSG_MORE when the bvec array fills

#12207
From: Christian Brauner
Date: Fri, 06 Nov 2026 14:04
30 lines
8961 bytes
On Sat, 31 Oct 2026 11:59:23 +0200, Avi Weiss wrote:
> splice_to_socket() leaves tail at the last included pipe buffer when
> its 16-entry bvec array fills. If the requested length exceeds the
> available pipe data, pipe_occupancy() counts that buffer again and sets
> MSG_MORE even though the pipe is empty. Small TCP transfers can then be
> delayed until the cork timeout expires.
> 
> Advance tail before checking the array limit so the occupancy test
> counts only pipe buffers that have not been included in the send.
> 
> [...]

Applied to the vfs.fixes branch of the vfs/vfs.git tree.
Patches in the vfs.fixes branch should appear in linux-next soon.

Please report any outstanding bugs that were missed during review in a
new review to the original patch series allowing us to drop it.

It's encouraged to provide Acked-bys and Reviewed-bys even though the
patch has now been applied. If possible patch trailers will be updated.

Note that commit hashes shown below are subject to change due to rebase,
trailer updates or similar. If in doubt, please check the listed branch.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git
branch: vfs.fixes

[1/1] splice, net: avoid MSG_MORE when the bvec array fills
      https://git.kernel.org/vfs/vfs/c/8eaa35c6c29a
Technical Details
Message-ID: <20261106-adjektiv-sachkenntnis-ticken-2977341c9d92@brauner>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-358029-linux-kernel-netdev=dewy.ru
References: <20261031095922.3577591-2-thnkslprpt@gmail.com>

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-358029-linux-kernel-netdev=dewy.ru
From: brauner@kernel.org (Christian Brauner)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH] splice, net: avoid MSG_MORE when the bvec array fills
Date: Fri, 06 Nov 2026 15:04:56 +0100
Organization: Usenet Network
Message-ID: <20261106-adjektiv-sachkenntnis-ticken-2977341c9d92@brauner>
References: <20261031095922.3577591-2-thnkslprpt@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network;
	logging-data="3895745"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:q7pnQi529b4SkXnGOixQelWULHI= sha256:KSAKtoG4bTvjI033dU0xYu+I0L+ybLM4rysCzo+kizE=
	sha1:8xUVGnUHEV/ZUWez2Asih1COJkA= sha256:BOfbTFfkQm7uE/owGehYvwlGoy9W1+rqGIYyn/NOe1c=
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 F34C9113277; Fri,  6 Nov 2026 17:08:53 +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 lFeUQXYhuc2X;
	Fri,  6 Nov 2026 17:08:43 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-358029-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 175D1113272; Fri,  6 Nov 2026 17:08:31 +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 147E12A5A7; Fri,  6 Nov 2026 14:05:12 +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=1793973912;
	b=RE8K4o9kDgSV4/0SBtfK7cYWL9c/pVNKLk3giFYzIAhazhtMMjsmM0yGfkesS8xIg6c6
	 WFzn4LhlTHK+wRNs4QZ1h9gxAuIIVSrcQ7E91k/pb2ODMq2abdeAz+/O0Pc1wM5//EteT
	 Mz99fbUUoyRBnISPQjxr15GlnMACiG5KhYjsZCIh8mDgQ+YgzO+NYgVnH7aufw2a8WbNP
	 EcNXFoEOScbXjeNIo/dpMzJe0VTE8KSl960g/FplvgvgAUOwtsFxqD/M2YJ2tbFG/oi41
	 Z8dMj2XgywfXRLEw7J6HxbUZRv1WiueQrnbaS+RubdjuiUNi2J/qEDl87GHKY2cikXw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793973912;
	h=X-Original-To:Received:Received:DKIM-Signature:From:To:Cc:
	 In-Reply-To:References:Subject:Message-Id:Date:X-Mailing-List:List-Id:
	 List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
	 Precedence:MIME-Version:Content-Type:Content-Transfer-Encoding:
	 X-Mailer;
	bh=BFyh7gp+o016bXpgBZp+EsYFLDasvIFAL9T5pdIp+Ps=;
	b=WLs11RlrnqmLMkVRCYRveqXWNUFDqsXkIXdIOiQnlJDjhrh1SpzQcAghGj6CxW0Vo7WS
	 ++01VExzUYGzTwFlBP6lVeGA4wtguDEXEVB2FEmZkmon/KIwrtAYoyYCELEAeAjMsHTlj
	 VMqCQnuKs6DLnAR8Rg6cLnLkmn+wUnPrfZ4bdUcxE6FFbkBmreBjOphfo+nkyGkhh0xbC
	 wgb9KNmR7nJRLhWwFjXjR5B6oIjlLs6F1bfcKuAmePV3h6fqvGhzWi48Y+3bCSa2EK+vm
	 Rc4KWki/lj88rZnvx9lkWSmc8ZbKxcDslHZgrwIvD8kPII/Y/w8baDRbt/QwHFvk9XQ==
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=DfqG7UhS;
	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 E0A58606A32C;
	Fri,  6 Nov 2026 14:05:11 +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=DfqG7UhS
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=1793973901;
	b=TELyulqFtMXiHN+C8vvJGmnb/YkQk+pvGLF7m6ndvO+pO+zYzgaxVatwb+fn/2gBRKmD
	 5W2C513P/iqBj5jnWMkazA+fFS5tssy1LmMxI2bac7JN8eBkI9z+zA5LDg5FjmtzBPl0Y
	 LMNERcVrBjtyjpYja/fgs39x/4mOOqjmEQQAqwtOZVJcG1+Cz9wR4XznP8btf+/+qcGIa
	 05tmX/b23Kafwo1GjG3jhMZtTV6ctsguk1CdWgnJyBhiCh9MW5YvpnoEndqPgEJkae6iL
	 xk6CPHoED008wTdR0Ql2wDhItylyOyaan/Mlnl6DYUgveD/mhONwdw2Am8Q/Cx07h5A==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793973901;
	h=Received:DKIM-Signature:From:To:Cc:In-Reply-To:References:Subject:
	 Message-Id:Date:MIME-Version:Content-Type:Content-Transfer-Encoding:
	 X-Mailer;
	bh=BFyh7gp+o016bXpgBZp+EsYFLDasvIFAL9T5pdIp+Ps=;
	b=xJc8hpmJa/g9S6njO76BS5j1WZTM3XPpOfLr8QI8SdCakmvAjDAKzL09dLp6YYU8336u
	 cVT8blKT4msZgSuHkYUVK/i1AF97XGyQrp4qXqz93svDldj27KLcjeL/r4BzglfRV1aWe
	 NcnlzKPpGDpQuNfJIk5aLMs2BuzwGcoZtmjk0oyZBfEaUC/Lu3qRO5+ZjLnZXQimmyEUc
	 ZdxC6R1Y+Oz5oKY3TD1YJHQvDpt0c+FQADnghN5Co+BkGZiDz/Tr+ZMTGWTl0LdwJV2Mp
	 hNtWvfSgRZdy4iiHOcSAeJpMo1vbdd0IkIbSbckOcTiVuJIEjBTBuXgKSRimNnuB6Sg==
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=DfqG7UhS;
	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) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id C5892606A337;
	Fri,  6 Nov 2026 14:05:00 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4CCCA1F0089F;
	Fri,  6 Nov 2026 14:04:58 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1793973900;
	bh=BFyh7gp+o016bXpgBZp+EsYFLDasvIFAL9T5pdIp+Ps=;
	h=From:To:Cc:In-Reply-To:References:Subject:Date;
	b=DfqG7UhSV5TRi2BXS5aW56SkpSsQr/WUtWH78JtI3M1ibFWnCWj4xvbxmFph8kNfc
	 U1zj24pZwT4D2rrzLfebx6Dun9lllxN55qA5I3pCUtuQeBWz3aafYle43TMR/kT1RD
	 IF5PYUnGjrz+eevm8nptixY972LM10NBFDU751l3b0/sH/+//t60R0/6KadUyf91IB
	 oiJQ2pECW+58czQZRLcX2Widu9ZK9xDnX18bt6oPvG0ffYXRVAQ4lfwJu9zG/GPE9d
	 VJTnViHrsVooFeUrJovzLgPscT3uYudwdqtjFrDXQAayIa6PZdQ58c+GY2X/F20v1n
	 VMz8CLLFk2owg==
X-Cc: jack@suse.cz, linux-fsdevel@vger.kernel.org, dhowells@redhat.com, 
 kuba@kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org
X-In-Reply-To: <20261031095922.3577591-2-thnkslprpt@gmail.com>
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-Mailer: b4 0.17-dev-ce4c1