Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp4023581rdh; Tue, 28 Nov 2023 09:42:50 -0800 (PST) X-Google-Smtp-Source: AGHT+IGkOSIe3ZmmpFoFmcA1WxSj7YcOrV1NtEl7ao2J1sZ4ePMkXUWG5r5c52wZh7hxM+MGveNt X-Received: by 2002:a05:6e02:80f:b0:35c:ea9e:ff59 with SMTP id u15-20020a056e02080f00b0035cea9eff59mr6910444ilm.20.1701193370020; Tue, 28 Nov 2023 09:42:50 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1701193369; cv=pass; d=google.com; s=arc-20160816; b=NCY5RYcz+V9bU4ZiDx69xtA9y832LT46iZeO3pFisVLtk+iZLl/EmL5BCb+eUDijEt zaULbXWTKHVUtKCRQd5Z6mqbx6W2tIjxsdH1RN/g/aBtuhO7Ko+/39QOyeIbWjkTdXFi jsXK04hRxaMV8UdHeQ0oFAoIbMqWzHhUdsyfKoWvGWwXiOR1iOC9XzyjZYNS1xihL7lR mCP/U+HO9d0tp4xjqogAg8ba8mxIx+wyt+ZQJH5AOI8oEabNEh8nqqOj+B884iOS49VZ ha7KBpiODtZCU+s1kZz0joLjg14trvOEgrbklBCc+6niH0b+IYPWOacVlcUxAibrj5H1 EyTg== 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:content-language:references:cc:to:subject :from:user-agent:date:message-id:dkim-signature:dkim-signature; bh=66T0oWIABKwexOCzTZq1LGAlctaAKl8J8KVmc0ANyPk=; fh=jSQ2Zdrfk16pKPBHQjz914jEy8V85L0uWFAEN/YjvC4=; b=n851qV1HmGGg/EobprLmAc0MNkx+x5CU3fNedbzD/C/rxp0x//DA5LpXhZSVxxzAfp AEcagGgtE0ctFB7n+NF8J2j2X3xWNwY9OuU2i9FjcQH3gj3gG+6YxKN/f9TXQ8LACFUg IEgiUoUGqyGIkOJ7gp2bTER0vdwgzChki17BxMRnvpEVa+1mtmeAaefRQ4r4VZm93yo1 uZ7rAMyd5NIhcG/M9lkk2gI59hMqVoTa+94apxPYhGLuIypQoJp+FLKAjUslqiVJAF7Z VG0G8jK5hHSbHIVXgDVHhG189eW129Q+igXqGEaJ3BuSOLKS8QBaxuQiiI3YLFTYGQR+ cY8Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-11-20 header.b=mfMPTbj9; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=egKa7832; 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.36 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 pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id r33-20020a635d21000000b005b96c4292bbsi12200059pgb.420.2023.11.28.09.42.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 09:42:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-11-20 header.b=mfMPTbj9; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=egKa7832; 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.36 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 pete.vger.email (Postfix) with ESMTP id 9908C804ADAC; Tue, 28 Nov 2023 09:42:47 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344957AbjK1Rmd (ORCPT + 99 others); Tue, 28 Nov 2023 12:42:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58016 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344939AbjK1Rmb (ORCPT ); Tue, 28 Nov 2023 12:42:31 -0500 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 65020DC; Tue, 28 Nov 2023 09:42:37 -0800 (PST) Received: from pps.filterd (m0246632.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3ASGhuoQ019904; Tue, 28 Nov 2023 17:42:19 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=message-id : date : from : subject : to : cc : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2023-11-20; bh=66T0oWIABKwexOCzTZq1LGAlctaAKl8J8KVmc0ANyPk=; b=mfMPTbj9Qb49vlzCkEs0prEvSqSBkfjt4+J0ruQmsTAmjTNHvAgbnoflbg3vvvx+f4z7 nfqDEvniddkWQRrTLDGt1TXkKECDzT8pSYuxPKxnlhXtrjB5lr6JUbbhvHQwBtyYhu+x 3PaSeMI7kszoNSd3NUdbU7ZvpHKpyqidDBH39dwddpB2zT2fd1+znHfSUqNVpuDnMFt9 z84oi8+evYkKCyu49IoZAg/osVENYkAPTOA1cJt2jSP0z2qSQbpZ3bfaKYFmdL1q1UVH hckOwx/NqD2CvOXt373ToAHfKbToQK/LjBokptn9vzLg6us4g5961CkwkXHz1knoCOAH Ig== Received: from iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta03.appoci.oracle.com [130.35.103.27]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3uk8hu6fhb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 28 Nov 2023 17:42:19 +0000 Received: from pps.filterd (iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 3ASH7laJ012634; Tue, 28 Nov 2023 17:42:18 GMT Received: from nam04-bn8-obe.outbound.protection.outlook.com (mail-bn8nam04lp2041.outbound.protection.outlook.com [104.47.74.41]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3uk7cd1d10-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 28 Nov 2023 17:42:18 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nfsBxF/NZYsV8wKNV8e1OTKJUS7rEZPejiLJMTFtKOCahsdO/7jSnteDD6Zz6g4L/7/U0PzP49b8QIruSFakTIEcHZfvIY2m+ZChRuiGiU51Qh2NXrjaF+XTadhfKmoCUWULT73DDtqVcRI0+dKNM5nJytupI3sFIsKQ2qSdeCLvBeGoGX7+wT/eUgAOl9Lua4JuV060fvapKYr9i49DhSkiPDmR3VVviS+TNZqG+ifiuYYOTcOnm0+uJZ5XdLpEqGug40+xhbxGns4I/e02bhlkOlJOWyswoEN3D1Hy2W7VwkeDINUQh5r7TNIid/YNrn+5EyiVNETV8RSBuazXrA== 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=66T0oWIABKwexOCzTZq1LGAlctaAKl8J8KVmc0ANyPk=; b=RMohNYIl3fs9+Jr4yufn1JRp+fWQAWtQ6WdKZPY0MTmaaVQOr1N1jnSMkj+A4y3BdkqRp1qubf05IewaB6fpYBCekBgqxTQPronVTNjD31LWj22OWu1Mimru2hrncnkFZ9/XsP2o1LKfK57ExmxBTxgKPAlalVI2cgU/6LsaTFDFXPhm46R3vKSXvlQreM/KBu4nAReyJZkmvNfCWJQwukRrXaTCozSr/lzsp/LQ7e03G6u/pSertxUZ5zTKOkqz2ULFTobWF6MeLIrHsuxG2Ib6Y6RnqaAzW0Kl+TReggaV0CwLH1Z6VRYhnyyXk2SJx5/ETBXWUNJXV+0cAaWejw== 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=66T0oWIABKwexOCzTZq1LGAlctaAKl8J8KVmc0ANyPk=; b=egKa7832DbzroHsHCqQJxEHO4LlxCv/QDti2EnG3K8st3ray1qG3cPOt+LjRhAFdlht3vjlU0Afs91SAxjkKT8s21bO+tu238UrZLvK04PDXrvpnodAxtOQAuAPzssBFdJs6rV9nNaVhq3wGDmaxW9wNrskrCLxDt7HTaVzEfVE= Received: from DM6PR10MB4313.namprd10.prod.outlook.com (2603:10b6:5:212::20) by DS7PR10MB7375.namprd10.prod.outlook.com (2603:10b6:8:d9::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7025.27; Tue, 28 Nov 2023 17:42:16 +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.7025.022; Tue, 28 Nov 2023 17:42:16 +0000 Message-ID: Date: Tue, 28 Nov 2023 17:42:10 +0000 User-Agent: Mozilla Thunderbird From: John Garry Subject: Re: [PATCH 17/21] fs: xfs: iomap atomic write support 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, chandan.babu@oracle.com, dchinner@redhat.com, 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-api@vger.kernel.org References: <20230929102726.2985188-1-john.g.garry@oracle.com> <20230929102726.2985188-18-john.g.garry@oracle.com> <20231109152615.GB1521@lst.de> <20231128135619.GA12202@lst.de> Content-Language: en-US Organization: Oracle Corporation In-Reply-To: <20231128135619.GA12202@lst.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: AM0PR08CA0001.eurprd08.prod.outlook.com (2603:10a6:208:d2::14) To DM6PR10MB4313.namprd10.prod.outlook.com (2603:10b6:5:212::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6PR10MB4313:EE_|DS7PR10MB7375:EE_ X-MS-Office365-Filtering-Correlation-Id: 5af35aec-0725-4cc2-6e1b-08dbf0395cc6 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: qfI/XNXlTv1Sdm/EpL3yX60hBJlWZZBueManuZqIGl+boOybQIZ4Ey7sa+iIICRDsc8s1MoyFJa9+v3UWs82Pecj5hznrSCs0vcNVwyCX4M848JGAVYukLYZ5dO9DS98UFkavmZHNzTj3bixSZTG88+8G7mLC2b7pvXoOwioQtvA+pk0P0cjd/Oh5k+TlBiMv48r6dLBeEDAqT2pOYCUVlW0JpkWJ82TTMDnVkQa0NBJNVLixc1XSIilZ/XTPgXVcu2dcer3LOPk7K7pOnAnMeVL+ep4nWqXLEkZaw9hCu8dA+QQBw94sJ4GxRQYFmcO4s1/Uv2M5oWR3QEv1WfXu6Qa46YFTTVX169lBdYqZEqvrtn+GADC3U54ljQ5ZhF0sXdyc+VaBOESxi2fgSJ2r6vZ7BK/ZFqbu2Tnwnp1TWaytPLa7rdxQ1bDbZcBiHTPiShhnOMHNJX2/PLJyDIrXMB7JC1g3VlXLEqK1K/ZUf1Pf6XrE+BXXmHau554wcyKfixTKVnzGgThlrdxSr8SmhQwRsZLBbQjOxfydohMTQOD2OXKTInkJHooGxBDKio6zw/Raig3M+dsX1SMhoDWZIITGu+ncwjFQDmABKFXrGV0AYW1oqGbiKSrHGAm01EIYlYvrsQuQnVykGXCgzy2Aw== 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)(346002)(39860400002)(136003)(396003)(366004)(230922051799003)(1800799012)(451199024)(64100799003)(186009)(31686004)(36916002)(26005)(478600001)(53546011)(6666004)(6512007)(6506007)(2616005)(38100700002)(36756003)(86362001)(31696002)(5660300002)(2906002)(7416002)(41300700001)(83380400001)(316002)(8676002)(6486002)(6916009)(66556008)(66476007)(66946007)(4326008)(8936002)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?SjRPWmRDRWtmWElsU0M2MVVPQ3lZM2E5cTZKcjFsTEpWVUdoWmp1UmV3U3JF?= =?utf-8?B?Q28waTR1TkR2c2s1VHJITkpNQmppNExONXh0amh5T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ubUVTMGFHcFJIZ3JILzNnPT0=?= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5af35aec-0725-4cc2-6e1b-08dbf0395cc6 X-MS-Exchange-CrossTenant-AuthSource: DM6PR10MB4313.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Nov 2023 17:42:16.4488 (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: wq7TTgt3aq3zLkniK8Vl6L7IC3msGDHROKRwttaETMUKLyL/ua3dQtLfXu/2u1mFG64zyEV20MSrlnHzrXMTvA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR10MB7375 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-11-28_19,2023-11-27_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 phishscore=0 mlxscore=0 malwarescore=0 adultscore=0 suspectscore=0 spamscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311060000 definitions=main-2311280141 X-Proofpoint-GUID: dARGLpdcmOR5R_laSSN-Gc-yZ1PhhKgC X-Proofpoint-ORIG-GUID: dARGLpdcmOR5R_laSSN-Gc-yZ1PhhKgC 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 pete.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 (pete.vger.email [0.0.0.0]); Tue, 28 Nov 2023 09:42:47 -0800 (PST) On 28/11/2023 13:56, Christoph Hellwig wrote: > On Tue, Nov 28, 2023 at 08:56:37AM +0000, John Garry wrote: >> Are you suggesting some sort of hybrid between the atomic write series you >> had a few years ago and this solution? > Very roughly, yes. > >> To me that would be continuing with the following: >> - per-IO RWF_ATOMIC (and not O_ATOMIC semantics of nothing is written until >> some data sync) > Yes. > >> - writes must be a power-of-two and at a naturally-aligned offset > Where offset is offset in the file? ok, fine, it would not be required for XFS with CoW. Some concerns still: a. device atomic write boundary, if any b. other FSes which do not have CoW support. ext4 is already being used for "atomic writes" in the field - see dubious amazon torn-write prevention. About b., we could add the pow-of-2 and file offset alignment requirement for other FSes, but then need to add some method to advertise that restriction. > It would not require it. You > probably want to do it for optimal performance, but requiring it > feeels rather limited. > >> - relying on atomic write HW support always > And I think that's where we have different opinions. I'm just trying to understand your idea and that is not necessarily my final opinion. > I think the hw > offload is a nice optimization and we should use it wherever we can. Sure, but to me it is a concern that we have 2x paths to make robust a. offload via hw, which may involve CoW b. no HW support, i.e. CoW always And for no HW support, if we don't follow the O_ATOMIC model of committing nothing until a SYNC is issued, would we allocate, write, and later free a new extent for each write, right? > But building the entire userspace API around it feels like a mistake. > ok, but FWIW it works for the usecases which we know. >> BTW, we also have rtvol support which does not use forcealign as it already >> can guarantee alignment, but still does rely on the same principle of >> requiring alignment - would you want CoW support there also? > Upstream doesn't have out of place write support for the RT subvolume > yet. But Darrick has a series for it and we're actively working on > upstreaming it. Yeah, I thought that I heard this. Thanks, John