Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1837252lqp; Mon, 15 Apr 2024 21:27:06 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWKOg1zAO9G9a4SFwemzhimtatgnVMnc+pybmadPLxd4Kzd2J9YpZDRWmvpw3K06hWAxK74KpRjzycEHeEbW0x+Kom71lbQ/6HwwTZiuw== X-Google-Smtp-Source: AGHT+IGVh0EdE8iSnMCphwCNetCk7xRe9cINcvkf7am3ymPcLHWiyIujeVhHTNKAl48qxZM/hJU0 X-Received: by 2002:a17:902:e845:b0:1e3:e564:57ac with SMTP id t5-20020a170902e84500b001e3e56457acmr12922428plg.10.1713241626504; Mon, 15 Apr 2024 21:27:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713241626; cv=pass; d=google.com; s=arc-20160816; b=Hdlu6ua1hF0rR/DnW+4gIFoZnUiKQr0Qi/XXSbzckH3Tn89/3kJZESID2u4HBW+UD8 HX2zXqrcrmlaNQz1Nqnq02lzvG8dNw48l6NYV0c7iEPgOv4ckvimETidzSPTfUwP06eS 82Xh4xFNQJUUWQ30n8KmJs2AIFP4Lrqb0yXeP3KNNgPft1qi+IjNLfaICRRF4sLu27/z XX5HvdnMCM03enKfpNhKgIejs47mRzRjRrjytuOyEAwszKBqqRRCVhbOYuw841gEqeI3 Q5uzuat9faOrXMxOWqV2+QggDvyYUXYxmC7xP8uhWe/G2tqhlVaHx7ZuoSaXfYBotmdh vAWA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=oq3OSv09Zcq3l/SCWQSioSa37PYcwwKSz6uiDlE9w/E=; fh=RO475LZJdmUJYll0VBAK3ysI2dTsL2YU2E44GVoBMqc=; b=QcKgslVFAql/jXfHC+vNlBKGLpaI//hinxJm/YDuaUhcM9Mh4qp5nJ1jXIfKVtA0SM T1dXd7ng03/S/wo1iiGnVbfUeOJt3kKC4TtqzjMmZfdNp8MVbTGwFJls0s4yZ9tt+Th9 yS6SivlTUcLtTex1Z2mC0hzuVvS0vj4yg8sS+8nXKPfaZp8HfqTNFrPnje7KdH/ZE/cN doYvMVrG0t2WmbRqoA1KZvbHWkIiK/ifqnBfFqUmy268znjrvte9HgaEnuP30B90FtVa YFBoP1BFqVTAefByBeWkbFLDTD53tPof8U9rHLg21gEB6JwlR/VY5mipprV7vym4cuaw p/YA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=k1gFawta; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-145924-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-145924-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id v11-20020a170903238b00b001e0892bb867si9245415plh.0.2024.04.15.21.27.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 21:27:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-145924-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=k1gFawta; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-145924-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-145924-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id D62B0285C66 for ; Mon, 15 Apr 2024 21:19:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F2A14157482; Mon, 15 Apr 2024 21:18:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="k1gFawta" Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) (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 C88FB25601; Mon, 15 Apr 2024 21:18:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=90.155.50.34 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713215927; cv=none; b=ICTQH6RfwE2lrHU1YC78CNwH2tyXc6TcI5yoAZJ4al6LTbWtVc+c+phf2lpWiZMqK8H2EDHsdamrK8Hao3GDXPl8UKKPjFX3dsj4ke6z+gYlxN6hMoemVBK7W7n8Fo4WKd5Gov/ldS6CKXN0CAUDFVroLoAar/k/wfD2I+twvjI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713215927; c=relaxed/simple; bh=EIMA/Lom4s4J3a8zeR2nuXbkOuAimmCY/e6T8tXxKbQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=QAQZfdA0ESSUJFjI7K/EXmRtYcSbObQnArbvU+QX8aZ14ZxoE2f+/vX5boEtGipBI2AfrurQfNggeUsV6Rp+maAQ+OiSnJJXyDvN0VUYRTf98YUcRl4UNKrgSChZ/lVjzQ+xq/hv5Jcdp/7seK/kGTHtIq4cdsfEME5gp+lsSnM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=k1gFawta; arc=none smtp.client-ip=90.155.50.34 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=oq3OSv09Zcq3l/SCWQSioSa37PYcwwKSz6uiDlE9w/E=; b=k1gFawtalSNyx93OW2ft4AbbZm mL+127agePKR7DWE1EgzM8K2Sdu0btd1XQeD8Wzl2tmTNdgWmn92sRrCehFh8u/+qHAagyvQyrV+I wglcZ0HQmPiryp3ay1AfYi9TzgEYQTdT7rPBLPlWeJzkacLKZXrdbwV9HsWzpaSjGI3Si8Mpfr2S0 0hiTTpWQOGyNpghwLESRQBYRaWfsk2cg6KJWgLE1zDszdu8yt8sfPIvBeNWyhWxqIe1CYWPFC33pc 4OQTnxL2Sln3ZByHLOn89dz27uUzxYSHVKBEuo/ChmtRraFlSsjkqf650IGawzGSeX5oHG74Pa4Vl djp37vKQ==; Received: from willy by casper.infradead.org with local (Exim 4.97.1 #2 (Red Hat Linux)) id 1rwTig-0000000GWYM-3AgF; Mon, 15 Apr 2024 21:18:30 +0000 Date: Mon, 15 Apr 2024 22:18:30 +0100 From: Matthew Wilcox To: Luis Chamberlain Cc: John Garry , Pankaj Raghav , Daniel Gomez , Javier =?iso-8859-1?Q?Gonz=E1lez?= , axboe@kernel.dk, kbusch@kernel.org, hch@lst.de, sagi@grimberg.me, jejb@linux.ibm.com, martin.petersen@oracle.com, djwong@kernel.org, viro@zeniv.linux.org.uk, brauner@kernel.org, dchinner@redhat.com, jack@suse.cz, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org, linux-fsdevel@vger.kernel.org, tytso@mit.edu, jbongio@google.com, linux-scsi@vger.kernel.org, ojaswin@linux.ibm.com, linux-aio@kvack.org, linux-btrfs@vger.kernel.org, io-uring@vger.kernel.org, nilay@linux.ibm.com, ritesh.list@gmail.com Subject: Re: [PATCH v6 00/10] block atomic writes Message-ID: References: <20240326133813.3224593-1-john.g.garry@oracle.com> Precedence: bulk X-Mailing-List: linux-kernel@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 Sun, Apr 14, 2024 at 01:50:16PM -0700, Luis Chamberlain wrote: > On Wed, Apr 10, 2024 at 05:05:20AM +0100, Matthew Wilcox wrote: > > Have you tried just using the buffer_head code? I think you heard bad > > advice at last LSFMM. Since then I've landed a bunch of patches which > > remove PAGE_SIZE assumptions throughout the buffer_head code, and while > > I haven't tried it, it might work. And it might be easier to make work > > than adding more BH hacks to the iomap code. > > I have considered it but the issue is that *may work* isn't good enough and > without a test plan for buffer-heads on a real filesystem this may never > suffice. Addressing a buffere-head iomap compat for the block device cache > is less error prone here for now. Is it really your position that testing the code I already wrote is harder than writing and testing some entirely new code? Surely the tests are the same for both. Besides, we aren't talking about a filesystem on top of the bdev here. We're talking about accessing the bdev's page cache directly.