Received: by 2002:a05:7412:2a91:b0:fc:a2b0:25d7 with SMTP id u17csp240499rdh; Tue, 13 Feb 2024 15:50:38 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXalSTCkIb1ev/ZT5tEfSutn27lry28DAvTu8WDupM4fh3sohOwd1IiwNVFHL5z+8N7ELo5jD+lqI6nKgjrgcLRFewiSRtvnRbNGyRweA== X-Google-Smtp-Source: AGHT+IFKUJ8Uljj3Y5Xru49x6lnf1BVD/CxlbpcnSgdaqNe6nrhIrEv7XaCDn3bfq4zbSgYG/RPV X-Received: by 2002:a05:6870:4707:b0:219:c8bc:66a8 with SMTP id b7-20020a056870470700b00219c8bc66a8mr652369oaq.55.1707868237977; Tue, 13 Feb 2024 15:50:37 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707868237; cv=pass; d=google.com; s=arc-20160816; b=UxS1GvvxwYslVljOOWH7aViWyNZiSvGX6oKdC1RsihypOcv9VLmb+PObqL2Gksvd8f 41w3lwxdqu2tB2nccothoX0sM0geuAI9loK+pcmc9RjMyDxp0huPEUXRPpTDgrt9uySV rn+wKx+XMNwOmq6rTH4IZrMt/4+TpBwZU4I/m0WhW48D5+IKgnrdeZ7Yp6ZE1IW83/1x Wyh6xPufvTLllz2cWK/zJ3VAQoJCBrD9GlKh1vTOIsZtpC+PB94YkbuGGD0B1tqyBUPt 8oRnNmSTNiiCDvn3E8rvgUyIT6YeoLHO1g5Unnqc8MDM3SEIzx8IG/9pl1Z3HU6mNfqk eFyQ== 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=IYMQSSFks5P2/r408Gknbi9pYvYwzKSkrlXyjrfh77c=; fh=hQtIz2uCcy+mJoTYj0Anxa6JLugxKvBFPyM3Gm29BSA=; b=IDQCSD+igrI9Qguix+DI15fQpgGh6iAGRz/U/000La/mEbDc5jpd1BjRCFHmjynRFy L9+RmaLrmvdE30Ht5dTh8Q0SkVc3rQNSMLkaDkfPta1KzWznPkPqHgIVigbFa6n1y8vq qwimYZmV3dQisbn3BTerKccbKgL5BzmzzFkVARwjK6KcTd2T5zLZSqJ5Si3I948mSi2g HuCgyAZPMyJHK9O3MUuLav0FBJ3kJe2EGUjp90+FFUk0J+i/mM2AeSxvbXQC+t55YN+m f8yM8oV6YTOd9yeJH19Pr3NPC0fNy2MxyB4+x60K+k1qG4WyE8p582aZJjAX1Qs3W74P ocvA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@fromorbit-com.20230601.gappssmtp.com header.s=20230601 header.b=FfBP6i2F; arc=pass (i=1 spf=pass spfdomain=fromorbit.com dkim=pass dkdomain=fromorbit-com.20230601.gappssmtp.com dmarc=pass fromdomain=fromorbit.com); spf=pass (google.com: domain of linux-kernel+bounces-64566-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64566-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=fromorbit.com X-Forwarded-Encrypted: i=2; AJvYcCUZVMKg/6nT2MBLQvNBEpnIDNL43QsQyo+eiQ4lHI1yPu/hWcz+5tKJdtolO9guk8pdUN6qTB7Btl9KahTIGxb2RRQiX3MMEo/ZPBK6Pw== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id s22-20020a63af56000000b005dc529d8827si2069615pgo.803.2024.02.13.15.50.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Feb 2024 15:50:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-64566-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=@fromorbit-com.20230601.gappssmtp.com header.s=20230601 header.b=FfBP6i2F; arc=pass (i=1 spf=pass spfdomain=fromorbit.com dkim=pass dkdomain=fromorbit-com.20230601.gappssmtp.com dmarc=pass fromdomain=fromorbit.com); spf=pass (google.com: domain of linux-kernel+bounces-64566-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64566-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=fromorbit.com 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 9D2CC28446A for ; Tue, 13 Feb 2024 23:50:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6164263402; Tue, 13 Feb 2024 23:50:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=fromorbit-com.20230601.gappssmtp.com header.i=@fromorbit-com.20230601.gappssmtp.com header.b="FfBP6i2F" Received: from mail-pl1-f182.google.com (mail-pl1-f182.google.com [209.85.214.182]) (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 2F2E06312D for ; Tue, 13 Feb 2024 23:50:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707868227; cv=none; b=idrQ9meyRuduiSKzodbRdyLUdjiQDu9oN/pr1IoNj+TrMbmEluleF1YDhrbmMCBMya1VSaUS6hCnrFyguaU1WTwy8dHl+u3EeFFseRjFuruoctlHE2r8kF8ENKKCeS5IrkTyUbLYnS/CuiJJoUjOodR+/YcVKF5nEkWpU6aVX+s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707868227; c=relaxed/simple; bh=oWycodL9L3zii0Ov8/Q+DQMHgh0JEikOVGPhH652GPM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ryo8yOVYsJOHDsrRNNoZeQX8pHOD02/iDaCE6aRFhZOH9rBFr7uM8q4y7SIyALjOksJgQRIqjAsukL/SKGqQKdt5q8LrxnYOkTcM4oELnVe6ka+IP+K3GkAPLg1kB8rk1WOyAGiYQ+K6ZG6VevHNCNih57bTzBKxpjG8mbvBFYQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=fromorbit.com; spf=pass smtp.mailfrom=fromorbit.com; dkim=pass (2048-bit key) header.d=fromorbit-com.20230601.gappssmtp.com header.i=@fromorbit-com.20230601.gappssmtp.com header.b=FfBP6i2F; arc=none smtp.client-ip=209.85.214.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=fromorbit.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fromorbit.com Received: by mail-pl1-f182.google.com with SMTP id d9443c01a7336-1d751bc0c15so43990805ad.2 for ; Tue, 13 Feb 2024 15:50:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fromorbit-com.20230601.gappssmtp.com; s=20230601; t=1707868225; x=1708473025; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=IYMQSSFks5P2/r408Gknbi9pYvYwzKSkrlXyjrfh77c=; b=FfBP6i2FgQZ2YUpoPQaYycA/5CAia9oRP77PYB6SL2rhQ0Gkh9R68FeXvzJFH1JWEl iw691uB04BFMTURrqFwquSeizCFC6x7PzSPm9q0WVgoUY43mAW8BVqi2RmRPrTaP9XOZ W80VSIxU6TCQSAdxxEHTO58Hrvs1J8lkvNuA/UkqtTU701WXhUb345j2ixObwMaXtunj krwoVCzX7RyzMhAi5tuqLkryHt62QZq6nzZDA2N8U6EUxVtGvhPOrs8vjHJGJMexlVce A2FXe08yGefZzK/rZcrrnhvlBt95SL91ZjLvrFISObJxBGReKPp4AoAvzKfWQ6pdxPEt mESg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707868225; x=1708473025; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=IYMQSSFks5P2/r408Gknbi9pYvYwzKSkrlXyjrfh77c=; b=HnIp6PCnRloJ6cPE3lopN7Lgy4r+vSn2t3ksHKlgEEPul0FPzfTyDAqrohsC8YJBF3 N2G8RgDJBrK9qz7/joNVvOgd7icUU8npRoWKPcjg9vmz07biydrVHXIHp7xIyPUel/Az koGK/s6cPD+8vJjlloW9mCiQykNevygjiUCZoB9k33TzU82ebaeXbUy50bSA4I57HtJA q0Fdfnuc/XBhwS9ImufHYtk7CDsFRZNqknAdjL8JxKIXYaEkKaVOANyBvM1h0AZFxyH8 wMxpQsSQS5k72E2DOG15iL3WoRjGgO1TRNlwNzvQ7gxG9rZ7U32fvJop/ByXUWmXwgic 5Keg== X-Forwarded-Encrypted: i=1; AJvYcCWyxvzmRQ9TzKAuwAzxun6EIUaWiT+orU7feeeeM/xNK++Fw9Ygl3yi2UlM2WZsX0sd88NcJv5dA5KxDvZQZ/NbDNhzYtB1JmmjyPsA X-Gm-Message-State: AOJu0Yw8Jdv+9+0RXZYBdGDgIuZCpO94CVzAF0R5bmieDzAlcvGHXLXB BOisRkva3b6KNruyNFtpZBe4wvY2gLaYk9970mldcoC+6Q6wHuZIhdS0HhwA+L8= X-Received: by 2002:a17:902:ab8f:b0:1db:2ad9:9393 with SMTP id f15-20020a170902ab8f00b001db2ad99393mr964554plr.48.1707868225444; Tue, 13 Feb 2024 15:50:25 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCUI7WapGKA5HInhT2xg3cyB085Cx4TiIwK3oURVy7Mt75n3BPzYEoV1R6LYcSVaUKFGLBEWL6W48qCAzF/HqCzB5I41KmFhdxefeEzKFZx0mWrPEFPFAvQ60+qj45lykZ7TWrgpe+WUl2xB9iKmIUkrRG2LRm8EijirWucVYI31QRpQBJLSR/W4qZ1czK667qxBiGZViG8gMp+IZo4xSROsfdQ6YyY9JPr6p/jmQdUlU2MYjGUsUWHF+f6/MS1fWqP7akaP+yhqMG7tceQwu/ntM50nkvnb05XeH2sN05pkOWMm3Kokjmcs83T2xOMcy2gAzuh6xsfK43eL6q7oFF4q3sAHOfxE+MVkPu38SQFVIIxLl3ovABUjqy+53cMFXsl4VR3j1Hd5NkpO8E4V+Gvao9Lo2MnAHw7er21iQUY3mQnDWzhy0sW2DxFTCQOcoAdu5rY2jAs8tw== Received: from dread.disaster.area (pa49-181-38-249.pa.nsw.optusnet.com.au. [49.181.38.249]) by smtp.gmail.com with ESMTPSA id kj6-20020a17090306c600b001d9c0c321c6sm2620188plb.67.2024.02.13.15.50.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Feb 2024 15:50:25 -0800 (PST) Received: from dave by dread.disaster.area with local (Exim 4.96) (envelope-from ) id 1ra2Xe-0069aG-2Y; Wed, 14 Feb 2024 10:50:22 +1100 Date: Wed, 14 Feb 2024 10:50:22 +1100 From: Dave Chinner To: Christoph Hellwig Cc: John Garry , djwong@kernel.org, viro@zeniv.linux.org.uk, brauner@kernel.org, dchinner@redhat.com, jack@suse.cz, chandan.babu@oracle.com, martin.petersen@oracle.com, linux-kernel@vger.kernel.org, linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, tytso@mit.edu, jbongio@google.com, ojaswin@linux.ibm.com Subject: Re: [PATCH 0/6] block atomic writes for XFS Message-ID: References: <20240124142645.9334-1-john.g.garry@oracle.com> <20240213072237.GA24218@lst.de> 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: <20240213072237.GA24218@lst.de> On Tue, Feb 13, 2024 at 08:22:37AM +0100, Christoph Hellwig wrote: > From reading the series and the discussions with Darrick and Dave > I'm coming more and more back to my initial position that tying this > user visible feature to hardware limits is wrong and will just keep > on creating ever more painpoints in the future. Yes, that's pretty much what I've been trying to say from the start. The functionality atomic writes need from the filesystem is for extent alignment constraints to be applied to all extent manipulations, not just allocation. This is the same functionality that DAX based XFS filesystems need to guarantee PMD aligned extents. IOWs, the required filesystem extent alignment functionality is not specific to atomic writes and it is not specific to a particular type of storage hardware. If we implement the generic extent alignment constraints properly, everything else from there is just a matter of configuring the filesystem geometry to match the underlying hardware capability. mkfs can do that for us, like it already does for RAID storage... -Dave. -- Dave Chinner david@fromorbit.com