From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from fhigh-b5-smtp.messagingengine.com (fhigh-b5-smtp.messagingengine.com [202.12.124.156]) (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 6F1243D47DD for ; Wed, 5 Aug 2026 20:29:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=202.12.124.156 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785961789; cv=none; b=ow4vp6yMnBGsSi2EvdkKIAdu9e7dhTGrqMxXUh3psDoisiaJxoIhkOvOp22ApsndCqcpMabgkL5XjSmJetsUQ+dYNFsIyujFyUhVg+yfWmobrI2GvNyPVO2UjOwP65+gTfzQwvKX6/Zlq6TkPiCyvQgLlUjtqeMLL+KsMKKYtek= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785961789; c=relaxed/simple; bh=s8nIPlD6rEahRkXOrm07PEQeiGQjXykcGjL81YIFOSs=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=PG1S5bAb8BjSVEb/5KFKt91SQKJkZxNeeiy297u/idViOtvE6Yr+Kstz1sJFL7JXqFBPHnPUd3ox/prdZWaXbY13Ampbka85jnkk0/O7bx+/eJt9rNjyNPokktA0I98yo1UyJW+r8aGGNEpGcqF7rm4ZEJIyFOj5Y20c+BxD0Zg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=pobox.com; spf=pass smtp.mailfrom=pobox.com; dkim=pass (2048-bit key) header.d=pobox.com header.i=@pobox.com header.b=x2rm4t+6; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=fuacAQSQ; arc=none smtp.client-ip=202.12.124.156 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=pobox.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pobox.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=pobox.com header.i=@pobox.com header.b="x2rm4t+6"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="fuacAQSQ" Received: from phl-compute-01.internal (phl-compute-01.internal [10.202.2.41]) by mailfhigh.stl.internal (Postfix) with ESMTP id 87C287A00CE; Wed, 5 Aug 2026 16:29:47 -0400 (EDT) Received: from phl-frontend-02 ([10.202.2.161]) by phl-compute-01.internal (MEProxy); Wed, 05 Aug 2026 16:29:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pobox.com; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm2; t=1785961787; x=1786048187; bh=s8nIPlD6rE ahRkXOrm07PEQeiGQjXykcGjL81YIFOSs=; b=x2rm4t+6x60Xok3ZrQDGILAaAO jG4bGDVmZMkza0rLgPuC86GG4/UmFxVgiFfNJMv8+diwd35VMRw1IYGFEhB7ZVNr yeWgxIxudtkc0kDHAbUoSeqHwueJHY70L8vZGE65QTIWz4EOtihh3wbQiw0W/t7d Ozfq3Mr545Dwvg5Xynu/jyFkpnSqUrSgqfpG8151NJe7iIxlEZk2xM0IV9mTJhx9 pPgQ/p7Ofn8o3BSjyoAuTpsu9kNJgzr5J/NhsVNUe4i8W8ibvEprGR3a0hX4K2BF NeKQ2qhE39c0N9h9ouvESzy1BZOD6YTu2qSG+j3JM4BG5Kvf5C+a6ANunYzQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1785961787; x=1786048187; bh=s8nIPlD6rEah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7JBxVxVFG06SYMm+xYwavzzjS1l4w X-ME-Proxy: Feedback-ID: if26b431b:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 5 Aug 2026 16:29:45 -0400 (EDT) From: Junio C Hamano To: Johannes Sixt Cc: Patrick Steinhardt , Ben Knoble , Jeff King , "brian m. carlson" , "Randall S. Becker" , Phillip Wood , Johannes Schindelin , git@vger.kernel.org Subject: Re: [PATCH 0/5] Reintroduce writev(3p) In-Reply-To: <8ff3c3ea-2604-4d65-8a7d-6acd6218b7c2@kdbg.org> (Johannes Sixt's message of "Wed, 5 Aug 2026 22:00:51 +0200") References: <20260716-pks-reintroduce-writev-v1-0-ea9038c884bc@pks.im> <2952d9a7-c7c0-44c0-a321-7ddad6497a6e@kdbg.org> <8ff3c3ea-2604-4d65-8a7d-6acd6218b7c2@kdbg.org> Date: Wed, 05 Aug 2026 13:29:44 -0700 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Precedence: bulk X-Mailing-List: git@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Johannes Sixt writes: > Am 05.08.26 um 20:40 schrieb Junio C Hamano: >> I think it is OK to explicitly document that any writev(2) emulation >> is allowed to be non-atomic, and it is also OK to declare that using >> writev(2) in this application to allow competing writes to the same >> destination is a bug. > > These are fine. > > But I'm not worried about current uses of writev, I'm worried about > future uses: "Look, we already use writev elsewhere. Let's use it here, > too, where we can take adavantage of the atomicity of the write." It's > too easy to miss a note about non-atomic emulations when the function > name advertises more than can be guaranteed. For this reason, I strongly > suggest to use a different name. That is why I added the "it is also OK to declare" in the above.