From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f174.google.com (mail-pl1-f174.google.com [209.85.214.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9F36D1E8351 for ; Fri, 21 Mar 2025 16:36:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742575001; cv=none; b=t8b3RimPfqyV3LCoeC8L8khf3d17h/45icQe7UCYZnv4J6yCE9JHhEmrG2D55daNNA0MPhk1CcnG4/l7+Sj2anzCZNPgT5lBEIVXPvnCvaPtP71O5Dy8IM1TslNnLeJY4TjEBEEa1Sv4MHySO4Dg6PSnNCacnTfaUUvLbJe1jWs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742575001; c=relaxed/simple; bh=Hjm+6X18HfhpHIGsOF0Wa+HjL7J2VCrd/SOk7TvJe8g=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=HfGG/omqY/8nmmpe8FKiKedOYqDDLiR1yEekEZIgHQ1cCgvIhcDqXpuWVfFPusu7DL9GMRRJof9DZIcg5/abosoVfmOgS//baq8pTERZLY7K4oE+H5s5KnQNab9Z9Oj+Gx/6Djg47PvfPCwv36yYIFHzPup5BiG2XgbgKxbAGho= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=fastly.com; spf=pass smtp.mailfrom=fastly.com; dkim=pass (1024-bit key) header.d=fastly.com header.i=@fastly.com header.b=MZHWkbQV; arc=none smtp.client-ip=209.85.214.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=fastly.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fastly.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=fastly.com header.i=@fastly.com header.b="MZHWkbQV" Received: by mail-pl1-f174.google.com with SMTP id d9443c01a7336-225477548e1so42854825ad.0 for ; Fri, 21 Mar 2025 09:36:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastly.com; s=google; t=1742574999; x=1743179799; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date:from:to:cc :subject:date:message-id:reply-to; bh=YALLnLfNqwU57i7wtFxN8i/4pwzBbw+w8xRGUYxzetU=; b=MZHWkbQV4x7bg/O4wFFFfRPlZtESaA0v8NXS4bwNrJ6AjgL6ju53tkdph3LJaiNMme Uzvt2rfsKBGYwXhkxusFMsVdUZtocME/uedeyElNWYuFM0pXYRhGn+chWuHm1avPkY+e bLTWDD3vMSIqEuSER+745abq7dnQ3YJWC0/HI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1742574999; x=1743179799; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=YALLnLfNqwU57i7wtFxN8i/4pwzBbw+w8xRGUYxzetU=; b=awHJoJtClXaCdUHPj5dOYOZKNyEXIrH55ackVp+qOsDvqpZ82RrjO6+ioCYA5nPyv4 I35haxY4glHOEON0Drr0CrKfVDiBMUizSyTyWPlQg7FoXBuxK0jGX70w/j8UUp9+B/+K 3nkmsQc5VDO08TwZ2XcHLWgi1R4vI6KT2ulc6FE1Fiua6zrBj/Uk4v5cMS9ZN7kkuoGA ZkvsOPSIjQC3tZ0JQUq7kDb9DpAYfxy7A5kDKAlmCw3TYTXaO8nDzGNoYTHGu2bZHpos Yj29NHmiG8pHTUZzXbbvSDl9XlHQqxJMkglP8W22FmABwgA7K8JN4G/eth+4loXVBIuh e7qg== X-Forwarded-Encrypted: i=1; AJvYcCWDVpVUAUNb9BOB44QFfsjPJLfaZrGO7V0b/oFJi1HQrGc7yUbDSJEa4CMiQrvm1OBh7NYEr1P5/Viq@vger.kernel.org X-Gm-Message-State: AOJu0Yz9fGCdoqoh99BFG4i84vy+zMasDaKP7lyEFXxaEeQ6JlKknyaC 0oWZEM/xzNrXeDpwduSuAkPawUR5Xtt+j3jLuIgXfUxXZDz8rG9cnHIOui4XZaY= X-Gm-Gg: ASbGncuwSHfLHJnRYG1IUV5afZR/DIFcglI3PWflKw+0ErqbghphhnqSc0NJuedxDfj ZiQCfBweFS8H7Qu829KEFcxvOPnj8fmf/AQLHzwVkTyehqLiyrXLzPcgAjsuE+ExBcVdDWhIAVB iaJZNicua2VIIysYQRnIMfgHMVkpnF9AvLTqRsLsr9ACJGPpxyVbgqJUzZgJYN9yDHLYZx4ZYWi V5ld4PqKNGABLNdf1xjRUZrhWQqBl437rfTbBDKcX+jDQyRWxnZdGyaBf8hCWPYtYJHDz+zfax4 t8lcmLtsopR4mtF8AcGnwudF8Qrhi95hw9Z41p6I0BYd/Z480n23OpP+cpifJFKYO4OLQAMv3It JGGn47C8V2IvgJR10 X-Google-Smtp-Source: AGHT+IHqu8khKPmdrz5ZxNhApg6woYn1wpjz3geiCjpfYxV9ENASu0IFRk3+3jTmUaVHH2l595zxFg== X-Received: by 2002:a17:903:46d0:b0:224:160d:3f54 with SMTP id d9443c01a7336-22780da858bmr63728105ad.31.1742574998924; Fri, 21 Mar 2025 09:36:38 -0700 (PDT) Received: from LQ3V64L9R2 (c-24-6-151-244.hsd1.ca.comcast.net. [24.6.151.244]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-22780f39772sm19205225ad.25.2025.03.21.09.36.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Mar 2025 09:36:38 -0700 (PDT) Date: Fri, 21 Mar 2025 09:36:34 -0700 From: Joe Damato To: Jens Axboe Cc: Christoph Hellwig , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, asml.silence@gmail.com, linux-fsdevel@vger.kernel.org, edumazet@google.com, pabeni@redhat.com, horms@kernel.org, linux-api@vger.kernel.org, linux-arch@vger.kernel.org, viro@zeniv.linux.org.uk, jack@suse.cz, kuba@kernel.org, shuah@kernel.org, sdf@fomichev.me, mingo@redhat.com, arnd@arndb.de, brauner@kernel.org, akpm@linux-foundation.org, tglx@linutronix.de, jolsa@kernel.org, linux-kselftest@vger.kernel.org Subject: Re: [RFC -next 00/10] Add ZC notifications to splice and sendfile Message-ID: Mail-Followup-To: Joe Damato , Jens Axboe , Christoph Hellwig , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, asml.silence@gmail.com, linux-fsdevel@vger.kernel.org, edumazet@google.com, pabeni@redhat.com, horms@kernel.org, linux-api@vger.kernel.org, linux-arch@vger.kernel.org, viro@zeniv.linux.org.uk, jack@suse.cz, kuba@kernel.org, shuah@kernel.org, sdf@fomichev.me, mingo@redhat.com, arnd@arndb.de, brauner@kernel.org, akpm@linux-foundation.org, tglx@linutronix.de, jolsa@kernel.org, linux-kselftest@vger.kernel.org References: <2d68bc91-c22c-4b48-a06d-fa9ec06dfb25@kernel.dk> <19e3056c-2f7b-4f41-9c40-98955c4a9ed3@kernel.dk> Precedence: bulk X-Mailing-List: linux-arch@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Fri, Mar 21, 2025 at 05:14:59AM -0600, Jens Axboe wrote: > On 3/20/25 11:56 PM, Christoph Hellwig wrote: > >> I don't know the entire historical context, but I presume sendmsg > >> did that because there was no other mechanism at the time. > > > > At least aio had been around for about 15 years at the point, but > > networking folks tend to be pretty insular and reinvent things. > > Yep... > > >> It seems like Jens suggested that plumbing this through for splice > >> was a possibility, but sounds like you disagree. > > > > Yes, very strongly. > > And that is very much not what I suggested, fwiw. Your earlier message said: If the answer is "because splice", then it would seem saner to plumb up those bits only. Would be much simpler too... wherein I interpreted "plumb those bits" to mean plumbing the error queue notifications on TX completions. My sincere apologies that I misunderstood your prior message and/or misconstrued what you said -- it was not clear to me what you meant. It is clear to me now, though, that adding a flag to splice as previously proposed and extending sendfile based on the SO_ZEROCOPY sock flag being set are both unacceptable solutions. If you happen to have a suggestion of some piece of code that I should read (other than the iouring implementation) to inform how I might build an RFCv2, I would appreciate the pointer. Thanks for your time and energy, Joe