From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=95.215.58.168 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795509180; b=eM2DNB6QVhkorqw5FSGNhmf6JJOVudMY98A71Z3DJJRkM1NDRQkkPNUurMeQtgzJpcke d+QdpMkx+cw++rz52dBQY39ZFUcTkcbDFNTCugqd1XtYWU2LBwH1sEaUpZtoDCktGMbw9 cLnBAR6sSVahlI0dHyBlGUJTv0QT5pYpjeikkc2uFmEoblzMW6yVyCMfnYqaUHbXGhAVT wsTAwoEm5JBQXssuNaCYwF0lB7pvbWZM+ci0jQH+Vf/cRBIJpGHdoF7XUU1Z3SesRxntW 0DLnZq0YcjHDe89zatYmdIqo+G6QIBIdBkfgqyDRl1FuMeahMurnn6CC3WFk97+VAFw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795509180; h=DMARC-Filter:X-Envelope-To:DKIM-Signature:X-Envelope-To:Received: X-Mizu-Trace-ID:X-Migadu-Flow:Message-ID:Date:MIME-Version:User-Agent: Subject:To:Cc:References:Content-Language:From:In-Reply-To: Content-Type:Content-Transfer-Encoding; bh=LPO48vD7S5neEvyJHFuA9R1n4Q5zbn7PJYAh8OnsRdY=; b=hNN/fEkhFrQKXpUAsWfu50Pj8NUXq7k7Tv3KwR3L2dF3H+X1DGs6cX2p+gXmJ+f9xO85 /GlKZoGM7px+yMeXpo2pGuItpWc2Ao0serlmz/1WDE24bgGIzhVPXN2XkUn9WliXgz+dE 39R1RGuYxTKd2zHTeK48Xv0iirn0mIQ/9pCi3l7yvTIyqcNch+um4/St2hmwL1Lqubjt/ vuxGq4MPjEpwHHVptqrclLl78EUbHmRPYWB5kuIzeUZoV7KhsqLuauQrYPfDzBbdaFOPB q1Fl361lXOkPBCTWaKYy0stkRCYhCPvUDQOnZVeFlhxTTrjr7lR4R9ySbdPiKIA5tOQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=QCLMA9d8; arc=none smtp.remote-ip=95.215.58.168 Received: from mta1.migadu.com (out-168.mta1.migadu.com [95.215.58.168]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3EB7B606A336 for ; Tue, 24 Nov 2026 08:32:58 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 3EB7B606A336 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=QCLMA9d8 X-Envelope-To: linux-xfs@vger.kernel.org DKIM-Signature: a=rsa-sha256; bh=Ak6FxQoWbpRq2lWcWMnO0gPGQPBuoAXUUj1aeDgPrMQ=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1795509177; v=1; x=1796113977; b=QCLMA9d8cZ/yEP+wr8Z7H4euilBqfwFtXNtimp0aEGGML00eXnbstZxYt3YcX4G3/SL+xdPz 8TnKYZOy96D6oM79iwjQUaZA2DeHp/fp1G1y4dtPjKsrGREmT5ZFPUhkHVZJ6L2IvLzzlAkzSEg rIgDciMxXgy2V/TYpkFfewYs= X-Envelope-To: linux-xfs@vger.kernel.org Received: by mta12.migadu.com with ESMTPS id ce3c8b98f12528e6; Tue, 24 Nov 2026 08:32:57 +0000 X-Mizu-Trace-ID: ce3c8b98f12528e6 X-Migadu-Flow: FLOW_OUT Message-ID: <2a615ca6-3777-4b71-bea6-4072d4fbd950@linux.dev> Date: Tue, 24 Nov 2026 08:32:56 +0000 X-Mailing-List: linux-xfs@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [RFC PATCH] xfs: add a per-filesystem switch to force atomic CoW To: Dave Chinner , Wayne Gao Cc: "cem@kernel.org" , "linux-xfs@vger.kernel.org" , "linux-api@vger.kernel.org" , "linux-kernel@vger.kernel.org" References: Content-Language: en-US From: John Garry In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 11/23/26 20:11, Dave Chinner wrote: >> The intended use is a controlled comparison of hardware-backed and >> software-backed RWF_ATOMIC writes on the same hardware, without having >> to construct misaligned mappings to trigger fallback. The existing >> DEBUG-only always_cow control also affects ordinary writes, which >> changes the workload being compared. > Ok, so you want it for your test/dev environment, not production? > > I thought we could already change the block device characteristics (i.e. support hw > atomic wirite or not) at the block device level? The block layer just accepts whatever atomic properties is reported by the block driver and there is no method in the block layer to change these limits or turn them off. Then for the only block drivers which today support atomic - NVMe and SCSI - similarly these we just use the atomic limits reported in the disk. > If so, why do we > need this at the fs level? If not, why isn't it the hardware atomic > write behaviour configurable at the bdev level? > Thanks, John