Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2778779rdb; Mon, 4 Dec 2023 07:20:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IEWjGFSc257PuDluyMfFeQN37W1tIYOH+Ke6Wd3A3GF+cgLNYipnzXNdQUUCOsoFauJsow9 X-Received: by 2002:a17:902:d4c7:b0:1d0:6ffd:f1f0 with SMTP id o7-20020a170902d4c700b001d06ffdf1f0mr1922273plg.70.1701703207276; Mon, 04 Dec 2023 07:20:07 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1701703207; cv=pass; d=google.com; s=arc-20160816; b=RgLJtvNyUxwf9kgLtSnLeSoPmMpbNW0BVicBVwu/kIbehnCpeXHjeXxk1Ovi4GGHR9 TOIxDgssiyba1sms8lD1FTk8Tru3yavHU5z6OSPLKRUjiF7BTS8QZu6z1NwbrJb4w9N/ k5jXDpitKswbMPxsSRQvx7nXlSns9b3j8jKsmngXjb8dti4d5/UkXrweGs97bIQZIK4l nzqBlKFzCYEGFFACr0F1lMO+/hGOR8/Oc/Ezl8tz2vRMYotqB8DjDvr0nwqTGRfjaeHD wMj+woikkZiIESSLJlWQadWnklowWSutcHtF8iPYiSWTISuUBmhzP+Ka3V32V0iaZz+8 2i+A== 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=OjA3YDYEX+inKfAoqDDEMGIKqJXxrQJ57lFryeMNyPg=; fh=jSQ2Zdrfk16pKPBHQjz914jEy8V85L0uWFAEN/YjvC4=; b=0zw5cPcvGQVUTOtXCToNGRJwFN13L/KPNL3r0x0+vHbhwN0dtxI69SMopEirgvxfbv 0570WqYmcGPVwkS3F+rxEPr9CMEJxGBanzL8Dlp/NpnanHGXLCtW1iD0Zi8v8uA5p/bv jjUxmSQgnBTdMcNySxzUoIhJ8q/ADQhRgyyg6jXC/YTZTG8o1h+GTblXpfbgpTVw1rTn KMTYIUeur7vQyZjiwPRQExslNVL4G8W2AbUf7boC03Uh+rsrgT8ifofDCCOBlh4nnhdt ChtlDFA0el8+tTKd7BvQiYzYtYlo8VP+Ugicdnm5tGvxbbq2sr8/PFnzhbumB099EF+e GqhQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-11-20 header.b=GPPjgPMV; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=e8Nfg4qr; 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.32 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 agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id p1-20020a1709028a8100b001cfbf5c0466si7755771plo.22.2023.12.04.07.20.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 07:20:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-11-20 header.b=GPPjgPMV; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=e8Nfg4qr; 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.32 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 agentk.vger.email (Postfix) with ESMTP id 2BD5E8058C62; Mon, 4 Dec 2023 07:20:04 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233961AbjLDPTr (ORCPT + 99 others); Mon, 4 Dec 2023 10:19:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46818 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234587AbjLDPTn (ORCPT ); Mon, 4 Dec 2023 10:19:43 -0500 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 75F7B116; Mon, 4 Dec 2023 07:19:47 -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 3B4FADS0007678; Mon, 4 Dec 2023 15:19:23 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=OjA3YDYEX+inKfAoqDDEMGIKqJXxrQJ57lFryeMNyPg=; b=GPPjgPMVWKQ6VPNjR8nxC6Goi0GszwmYaqc36ZTXY3ynwulLglaE8oZKLLIo1m9S9KvS Yu4wAKKtrMKSxb1BcNZgmq+zku4bCeyLbpY0fsCg2w1Pw/K0f9wCIjQgvi7CcS/D37Y1 HlMPgWuNAFxW/APAgEhtysBZ6vLJQZatiRxtphslHU720mcMZ05dqtAvg7YA9+xunNs5 KgXFoK6fBMef81LDhs2BwAK1nbjQYbuHS+wZhWfEfxK0EY0maEHCUBIOrzOQOg0ON4xW akcdXRhHyETF7uBfw4hbAZpTd9HBuTdNbraVnBOHbSObfRviAzWXAxERP/zDy0aOlVxj 4g== Received: from phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta02.appoci.oracle.com [147.154.114.232]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3usfxp0a4c-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 04 Dec 2023 15:19:23 +0000 Received: from pps.filterd (phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 3B4F4NAG003898; Mon, 4 Dec 2023 15:19:22 GMT Received: from nam10-dm6-obe.outbound.protection.outlook.com (mail-dm6nam10lp2101.outbound.protection.outlook.com [104.47.58.101]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3uqu15yrrw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 04 Dec 2023 15:19:22 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KrB0E0BP8me1iVGbqbescQQw0aDXPaDn52Rjmjp9SqEQYKwG2qPl3RxOYqCtqDF/IU+hlr5Cy2YSSqi0Pbgz9/B8APmZgDcWtJW+YE6mR1goWBA18IxNqQFWA3SGM/cfbpyZf0EGfWlCT+xvrHpjo2pDTGyfErIVQycjhfWra9EjNf7tWsw7BEmKZL+2mWHpgfAPqOjiuQG2E7MPkDj75b4ggNjp2qOVPlkMDuSk7da5uDr5LO9KGMtk7P8tj+06BjfefNozfq8F8X8IyDgiUwB7b5inXzSc3f4Gc8lyfjT9KJT08VWScfNAw98IvE6AdKeOYAMt2NLAOZZU7L+Q+g== 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=OjA3YDYEX+inKfAoqDDEMGIKqJXxrQJ57lFryeMNyPg=; b=M6Qp7OCFNy4mLK6Ekq6PNtqj4ADGEd2h9JcDrKfrVtgWEmUoVsQVJzP5WEbdq685U+UFdyVm/QW66fn3yJ80TalC1QvolF2OXqgSVK3QpLxl+aU3mcvUUp8KRmhS75FcK6JUZEB+ckg/GFtL1n03Pa87M0fzI7u1LaEf1ICC+LC3gdf8HMULpDdkzhY9pQe8DpKqDItykFqJiAwH9r1v/crvdF/DP6FVAPFz2gEo2k9vwp9rNEhQw/5jwdjt7ru/KhRLUwBog3OtnOz948Uttbevq3a2V8gC8H238XWUWeZ8VdOYSbNNrDnvJCWszxwL0ERZubaT9R1U9C2xP5PZLQ== 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=OjA3YDYEX+inKfAoqDDEMGIKqJXxrQJ57lFryeMNyPg=; b=e8Nfg4qr06FqX6y9ITizNh8JwjjLrQdneO/XeSKNyQ6Sv+j6AtaovDJXgDI+ma9X/+0j+QkzEEaumcLABDCCVkODq5qZyz3xHe3/pIC0ic9qblL9gxn8bwEdKaTGyx8Dmma8clJJNnPUWLJk+RL0rywGWe2Kyp578smHLCV20SQ= Received: from DM6PR10MB4313.namprd10.prod.outlook.com (2603:10b6:5:212::20) by DS7PR10MB5928.namprd10.prod.outlook.com (2603:10b6:8:84::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7046.33; Mon, 4 Dec 2023 15:19:19 +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.7046.033; Mon, 4 Dec 2023 15:19:19 +0000 Message-ID: Date: Mon, 4 Dec 2023 15:19:15 +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> <20231204134509.GA25834@lst.de> Content-Language: en-US Organization: Oracle Corporation In-Reply-To: <20231204134509.GA25834@lst.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LO6P123CA0056.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:310::13) To DM6PR10MB4313.namprd10.prod.outlook.com (2603:10b6:5:212::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6PR10MB4313:EE_|DS7PR10MB5928:EE_ X-MS-Office365-Filtering-Correlation-Id: 1bb691e6-7834-42fe-356b-08dbf4dc630d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 0Abm/GwUqgn92jSKwarI0t1ASO0fR6BhkviJ7rfXm6alZsLaAaz7s/zumT47zHhvReYSg8wdM4P8Tv9So3e/C2rhfBhIEAh6on7rg3iyOeIP5qn99Jvyyu9COS2jWetseSnORI45T0sYXNO3JObkXqn5pxyJB9x9ciaY4T+amIw7edMexwi4YTiPHxQKESAU1CxaqZ5UHqUAXqcPRGCrAPn7iSNckTyZTDDvBjVCZOpmaV/Xiz2+sBtiPcrkv64P8zZy6ZOqtiX0UMq+aPYceUpvQt40aTIfYGZbdpudvA/eQxrT4iA8PJQo8uU8o6kZIYQwS9j2skaw0eTRVLvkP4y4ems6L1ts+sL4OP0AxC/fVbON9Q0yfCw72DjgXR5Fc1tONXvfgjXEjOEVFoK9w4gC2tZj/GBvZA3EHlkwUanKpLm7gzi9ATcvFGIx59yeASeTIeetEu07UKry5bkByeFImMqvxPHfd6jASjxzqRHmfpTLquG7yd5G0LFK1Ni6ORqJfWcV0bf3QA6xDo/VLKir+eCcWeQPEtisq4Js1BiRARGvwEfQhn1GPiibQTK1b8bpITJ+UECip56epn9bv+ZE/sJsvx5aPGwoLIia354lPxcwELLdMw5JzwpAwN/3fvwrEj1PD7ZVLQJqkmLrDQ== 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)(346002)(376002)(39860400002)(396003)(136003)(366004)(230922051799003)(1800799012)(64100799003)(451199024)(186009)(26005)(478600001)(966005)(6486002)(83380400001)(36916002)(6666004)(6512007)(6506007)(53546011)(36756003)(2616005)(316002)(6916009)(66476007)(66946007)(66556008)(31686004)(38100700002)(5660300002)(4326008)(86362001)(2906002)(8936002)(8676002)(7416002)(31696002)(41300700001)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?c0I5NTdFSzJqUmZqd3F0RDZQVzNVVUVFcEd3MzdOTnBiQzk1QjVuOFJPQzdO?= =?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YUc3c0IvV0VzVjMxMGZnTWpoSnd6UnJkdU9nK3h3Kzcwb2pxdkUzMENO?= =?utf-8?B?bTRJVjBLbmNHaHlxbW51NndQUXNBK2c3bWRIV3JBPT0=?= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1bb691e6-7834-42fe-356b-08dbf4dc630d X-MS-Exchange-CrossTenant-AuthSource: DM6PR10MB4313.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Dec 2023 15:19:19.7071 (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: aiCW0Ldj54Ug3pcZPASH1Oyjv34cSGJB8p/lfAIxytxjMusRnOHYQIAT3daFkIsC9ObvVMzvBqHxV9TpGctA9A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR10MB5928 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-04_14,2023-12-04_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 mlxlogscore=999 suspectscore=0 malwarescore=0 adultscore=0 phishscore=0 bulkscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311060000 definitions=main-2312040115 X-Proofpoint-GUID: SlkNmeT4xmHaCe-VR9s6IAvIiOtMc-iS X-Proofpoint-ORIG-GUID: SlkNmeT4xmHaCe-VR9s6IAvIiOtMc-iS 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 agentk.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 (agentk.vger.email [0.0.0.0]); Mon, 04 Dec 2023 07:20:04 -0800 (PST) On 04/12/2023 13:45, Christoph Hellwig wrote: > On Tue, Nov 28, 2023 at 05:42:10PM +0000, John Garry wrote: >> 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. > > What is the 'dubious amazon torn-write prevention'? https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/storage-twp.html AFAICS, this is without any kernel changes, so no guarantee of unwanted splitting or merging of bios. Anyway, there will still be !CoW FSes which people want to support. > >> 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. > > We really need a better way to communicate I/O limitations anyway. > Something like XFS_IOC_DIOINFO on steroids. > >> 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 > > Relying just on the hardware seems very limited, especially as there is > plenty of hardware that won't guarantee anything larger than 4k, and > plenty of NVMe hardware without has some other small limit like 32k > because it doesn't support multiple atomicy mode. So what would you propose as the next step? Would it to be first achieve atomic write support for XFS with HW support + CoW to ensure contiguous extents (and without XFS forcealign)? > >> 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? > > Yes. Then again if you do data journalling you do that anyway, and as > one little project I'm doing right now shows that data journling is > often the fastest thing we can do for very small writes. Ignoring FSes, then how is this supposed to work for block devices? We just always need HW support, right? Thanks, John