Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5432414rdb; Wed, 13 Dec 2023 08:28:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IFWr8YTSe8XirphxgfZdeEhbz5bxmSEQ+xqy50R2PtO1bww58tg5OueHenmwILcW6eWTMCO X-Received: by 2002:a17:903:185:b0:1d3:3b59:dca8 with SMTP id z5-20020a170903018500b001d33b59dca8mr3360841plg.67.1702484936721; Wed, 13 Dec 2023 08:28:56 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1702484936; cv=pass; d=google.com; s=arc-20160816; b=mkBxZa1j2o0ARPaz8Bv0+Hcx7Lnd1V2kKJW7iLWp3CAGcw7yaoPgGa2Lv1BHeY4+2i 3RPgtQ/zpVdwJDltdZBnszy5pLSy4FFpPvfiFuzaQrMDIwTosRQ5/bx1GFBTk4yNO2MN Ti3cnEe7rYc7aZSx8ogT/HN0OeJZMXlpfwhy93Xux2qN22xNqaQHl2Ch6VhlIB+hTT+k OAWszkXPuL7rO3Dd6JlUaL9MrVrVML3d9RLrQPX0JJX2BuwW61lIOv428TQjjgOe2KqX ImJNDL+zr03urlJCHn6DWq6CCiXhW+XaulJwtIAae8fNvYDWzhJlig/b0xJqkG1qIMB4 UN3g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:organization:from:references:cc:to:content-language :subject:user-agent:date:message-id:dkim-signature:dkim-signature; bh=h46qOYMyLpu/ZN+SbO2HO8naC5nIjE4+YBJu11C6feg=; fh=Xnoi0KflalJr45R0ecYOzC361k96Sqjvo29GNAHV/zg=; b=lJFl/+yz4JZTulMS+1ePnAkD56C51Ich0wX2ZLBLIG/HfRHdw0TvNbO9GwoXwFC2dP jMyLdP3qG7vmhbXCtOBf28XgnMR8SppZwpYLf2nugvK9/0QxNHAKnmhhmKMIn9aC5Xnj flzU/5a9A2IbPN1XkVxMWUd2U/3ZpNYuKSSTI3wLcRRTABVFJkTry4HzF1xpFN9jbEUR z52+dQL1g8Wgco9yYavYuyZk1apmprbicLpBRTLaQ9MXResGWnsACpV1pJ9gQ0NUl9Wh b1+VnK5bf0w63aYPuu67oH4jqoEvxuu1VrWOZJNCUt2fRXbvMVzVWwxA1l4FZwxqlxWn p9YA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-11-20 header.b=iGnEZeXG; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=KhO2Yseg; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id e18-20020a17090301d200b001d0a791c902si9519760plh.136.2023.12.13.08.28.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 08:28:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-11-20 header.b=iGnEZeXG; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=KhO2Yseg; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 2317C8057D8F; Wed, 13 Dec 2023 08:28:54 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232736AbjLMQ2i (ORCPT + 99 others); Wed, 13 Dec 2023 11:28:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229975AbjLMQ2h (ORCPT ); Wed, 13 Dec 2023 11:28:37 -0500 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5B16F83; Wed, 13 Dec 2023 08:28:43 -0800 (PST) Received: from pps.filterd (m0246631.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3BDEQq9P015965; Wed, 13 Dec 2023 16:28:16 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=message-id : date : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2023-11-20; bh=h46qOYMyLpu/ZN+SbO2HO8naC5nIjE4+YBJu11C6feg=; b=iGnEZeXG7EyiamgfIQbKGal2RZrzRIGCp8u33oOQPsshAcp/yiCMG4wa0H0OjlQNzqpl usAvvXkPzthUDubPeXx3Avth7qYPAbfE4Lh4yDeEDMFL/3X2a+FXpxqRO/8MbQcjJOO/ JZS55ZA7pQ1lYspa6ms3xFiZiaedJUK3NMyRGauFHhuMTifVhG4twhKm4/BU5dLboQOI f4MD32F7TNWGe2L/u9RjdSgYb+isFvlZ+wlnA21jCaSgye4xQgOpUnogSumg7x656s2g szMD7nnK7aL4+OOCAtwB18jE8VGGvRH9t53uhDvD59nOBlF81UEoAYv/mRM6j1PY6uHP 8A== Received: from iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta02.appoci.oracle.com [147.154.18.20]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3uwfrrq1x6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 13 Dec 2023 16:28:15 +0000 Received: from pps.filterd (iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 3BDFCihV003288; Wed, 13 Dec 2023 16:28:15 GMT Received: from nam10-bn7-obe.outbound.protection.outlook.com (mail-bn7nam10lp2101.outbound.protection.outlook.com [104.47.70.101]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3uvep8j4vt-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 13 Dec 2023 16:28:15 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JTD+P1FJGwf9wMRk2ibDfkNjanhttxaCm0/ov+1XSFu52T62veTVzzQ7UIfTa45FmU6wgvim6ToomeNVPXz4uPR8ejWfDfzpHSpGLwWcvnlbr5YaA+YbJJbqnbLv7UPAHEwok5io2TiqJ09mTtGi2jpz381lnzKLcbAF3HN2T5bqaUMs+ZPinKu2KcsXQQEdbjRJAkOLwCFCMCVa8qor7v0IbNQHEtVKTSvZ2nwJ4VDzYBAbcPpIJ//inY6S+deFi+dKBGyReQL3EHvSMVeonQKGHOskL2PIZFrBiVq9GgqzIBgEaQi1CpbFpDRirm7dkHiWkuoT7khdxBqRcHC64w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=h46qOYMyLpu/ZN+SbO2HO8naC5nIjE4+YBJu11C6feg=; b=AwztmM1H01uBiwCna09UworYtF9JgJ2c/PnS+bdJeKGfuSfrfKseWqkWoSCZOOcnzEBJVbTcm49mhQMXj+/SY7rE2vXDEW3417NEA+nsgYAPm/yYHoCPnyYNr0v0LD97f4vYNkVqXRr5tlTDs2DDgy28jj8ciya7IGnamohUPMIHaPmC3b2wVHlOCO3PnudbqRG9PIxZrA1LKPOqf5sfwGkR9IT+1UDECz5+HUxJnK8Lb/GUtVPE7L8Ea1ivStDR3njvEJiG6lolrc/I6eOoIv9oaBtxo50ZUBA8S04X95w6NYV1cP3CwbSpq4CWPM4Brx6UIJrlzBVhXCMhMxi2Ww== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=h46qOYMyLpu/ZN+SbO2HO8naC5nIjE4+YBJu11C6feg=; b=KhO2YsegvId4morHdsDPjb3TF4MvymptlBm/v1yadrLcaR5Mt6eteVMHqRtxehZr1l7fgL4U39gK2Irdts0IP+DCPOI1NJ4zIvAGls8/5NRfHJV8J3dRiksB0xGnNqtxMRXAz8sATU88+c1LllBjoe4CjAFRcPrJUhKtBqBjn6Q= Received: from DM6PR10MB4313.namprd10.prod.outlook.com (2603:10b6:5:212::20) by DS0PR10MB7127.namprd10.prod.outlook.com (2603:10b6:8:df::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7068.33; Wed, 13 Dec 2023 16:27:40 +0000 Received: from DM6PR10MB4313.namprd10.prod.outlook.com ([fe80::102a:f31:30c6:3187]) by DM6PR10MB4313.namprd10.prod.outlook.com ([fe80::102a:f31:30c6:3187%4]) with mapi id 15.20.7091.022; Wed, 13 Dec 2023 16:27:40 +0000 Message-ID: Date: Wed, 13 Dec 2023 16:27:35 +0000 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 00/16] block atomic writes Content-Language: en-US To: Christoph Hellwig Cc: axboe@kernel.dk, kbusch@kernel.org, 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-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, tytso@mit.edu, jbongio@google.com, linux-scsi@vger.kernel.org, ming.lei@redhat.com, jaswin@linux.ibm.com, bvanassche@acm.org References: <20231212110844.19698-1-john.g.garry@oracle.com> <20231212163246.GA24594@lst.de> <20231213154409.GA7724@lst.de> From: John Garry Organization: Oracle Corporation In-Reply-To: <20231213154409.GA7724@lst.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LO2P265CA0509.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:13b::16) To DM6PR10MB4313.namprd10.prod.outlook.com (2603:10b6:5:212::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6PR10MB4313:EE_|DS0PR10MB7127:EE_ X-MS-Office365-Filtering-Correlation-Id: bf8ea386-8eea-424d-8817-08dbfbf86cec X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: yV+Wa7j8ffS5lue3wN+Cf6rwrr5ipuo/dqDrT7gvX9F37Ipedkl7GoqKVpA6Ep2Z9H9C9IFgvy87znaSsvk0c49TeEfWqiBa2qn0V9szP0RqbvIOLBAhafd2bDY2TblnHHTo0XUKzXd8pH4AQA4lArpPpRvOz21MyW5tXXC8WIaYzxpVrXxVM+TLJoM8BQo0yhfS9CBIpo+X2eOc6bJW3Zy6jGsWZz9YNpxWrnwvufabnfJLIS9Fvi+EMtf66EvGgD9XnNCrCXtv7mEWo/nak7JiK5F+/0a+lRRgLHdST4CccsO4THoL5BhXoBrhW9YzZqEWn0GcDMSBgexf/BlmnzxCgsI3wvGCvzM5e5BDMd5AZs5V52ZFgoJ/AOe/mc+5Of8r9bdeB02oQBMQe4WzxSLsUmfwAwIOFH+C8YU+cFI8FyDiwFI4YgkPlshqcPU1ROpiOa8aXNK+lo1frMbn8NrHtO6MB1tBErEXYqo6zLZt3NGCb74/uSmexi9lEYQJ8z9XomeS7yDBcBjfVs3sgjcPTznuoNtWg0D28z5AtusrO63DcV3K9/vgmfd02fHPjjBhDXHBRsxqDBmQG0SmvscG4qGXgy77OHVmHhPW7moEVawPyjfraqBzg4tmigIqq4+ApaQjCfJQg0V1MrIkpg== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM6PR10MB4313.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376002)(39860400002)(346002)(396003)(136003)(366004)(230922051799003)(451199024)(1800799012)(64100799003)(186009)(83380400001)(6512007)(38100700002)(2616005)(4326008)(8936002)(8676002)(26005)(2906002)(316002)(7416002)(5660300002)(6486002)(6916009)(478600001)(53546011)(41300700001)(36916002)(6666004)(66476007)(66556008)(66946007)(6506007)(36756003)(31696002)(86362001)(31686004)(66899024)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?clJDdUVYbjNObFBiOUxZM1E3cEdwWUlXWDJjRi9pZ08yRC9la0xldW9iVmk1?= =?utf-8?B?Z3ViOVdDVWxhdy9CRWhVMzhQTWZB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25yUFlOcmEvK295UUhoU2dPc0tHeURqVEtLdUZuWm1nWnpw?= =?utf-8?B?L0p1UE5pTjFmMmpIWWRLZzR6b2RoMWQvNXg0T1E0ZVBWMUk0Umh1bTJlMCtJ?= =?utf-8?Q?PXm1lQzKLvQ0OTv4Nc0fIbsIade?= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: bf8ea386-8eea-424d-8817-08dbfbf86cec X-MS-Exchange-CrossTenant-AuthSource: DM6PR10MB4313.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Dec 2023 16:27:40.3110 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: ZTX4X+9U4qFLuj10eNv+SzVlXpoAWtS8NFONxmaa3gjMqppw+qGeQb5ISzL17WEa21GnDbuj06I6wTPcLWiCPQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR10MB7127 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-12-13_09,2023-12-13_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 phishscore=0 bulkscore=0 spamscore=0 malwarescore=0 mlxscore=0 mlxlogscore=999 adultscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311290000 definitions=main-2312130117 X-Proofpoint-GUID: C2j8wE6KyRsX1GaDWiQEP545lPQu0Ka4 X-Proofpoint-ORIG-GUID: C2j8wE6KyRsX1GaDWiQEP545lPQu0Ka4 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Wed, 13 Dec 2023 08:28:54 -0800 (PST) On 13/12/2023 15:44, Christoph Hellwig wrote: > On Wed, Dec 13, 2023 at 09:32:06AM +0000, John Garry wrote: >>>> - How to make API extensible for when we have no HW support? In that case, >>>> we would prob not have to follow rule of power-of-2 length et al. >>>> As a possible solution, maybe we can say that atomic writes are >>>> supported for the file via statx, but not set unit_min and max values, >>>> and this means that writes need to be just FS block aligned there. >>> I don't think the power of two length is much of a problem to be >>> honest, and if we every want to lift it we can still do that easily >>> by adding a new flag or limit. >> ok, but it would be nice to have some idea on what that flag or limit >> change would be. > That would require a concrete use case. The simples thing for a file > system that can or does log I/O it would simply be a flag waving all > the alignment and size requirements. ok... > >>> I suspect we need an on-disk flag that forces allocations to be >>> aligned to the atomic write limit, in some ways similar how the >>> XFS rt flag works. You'd need to set it on an empty file, and all >>> allocations after that are guaranteed to be properly aligned. >> Hmmm... so how is this different to the XFS forcealign feature? > Maybe not much. But that's not what it is about - we need a common > API for this and not some XFS internal flag. So if this is something > we could support in ext4 as well that would be a good step. And for > btrfs you'd probably want to support something like it in nocow mode > if people care enough, or always support atomics and write out of > place. The forcealign feature was a bit of case of knowing specifically what to do for XFS to enable atomic writes. But some common method to configure any FS file for atomic writes (if supported) would be preferable, right? > >> For XFS, I thought that your idea was to always CoW new extents for >> misaligned extents or writes which spanned multiple extents. > Well, that is useful for two things: > > - atomic writes on hardware that does not support it > - atomic writes for bufferd I/O > - supporting other sizes / alignments than the strict power of > two above. Sure > >> Right, so we should limit atomic write queue limits to max_hw_sectors. But >> people can still tweak max_sectors, and I am inclined to say that >> atomic_write_unit_max et al should be (dynamically) limited to max_sectors >> also. > Allowing people to tweak it seems to be asking for trouble. I tend to agree.... Let's just limit at max_hw_sectors. > >>> have that silly limit. For NVMe that would require SGL support >>> (and some driver changes I've been wanting to make for long where >>> we always use SGLs for transfers larger than a single PRP if supported) >> If we could avoid dealing with a virt boundary, then that would be nice. >> >> Are there any patches yet for the change to always use SGLs for transfers >> larger than a single PRP? > No. As below, if we are going to enforce alignment/size of iovecs elsewhere, then I don't need to worry about virt boundary. > >> On a related topic, I am not sure about how - or if we even should - >> enforce iovec PAGE-alignment or length; rather, the user could just be >> advised that iovecs must be PAGE-aligned and min PAGE length to achieve >> atomic_write_unit_max. > Anything that just advices the user an it not clear cut and results in > an error is data loss waiting to happen. Even more so if it differs > from device to device. ok, fine. I suppose that we better enforce it then. Thanks, John