Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1867847rda; Tue, 24 Oct 2023 06:02:01 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGLc6jWvV8pgNJs/xAnw6JY/d8N4P+BNma6maOnSE2/rMK1Nzebw04zkfeCGUPDKJf0AfpD X-Received: by 2002:a17:902:f7cd:b0:1c6:30d1:7214 with SMTP id h13-20020a170902f7cd00b001c630d17214mr9624405plw.55.1698152521141; Tue, 24 Oct 2023 06:02:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1698152521; cv=pass; d=google.com; s=arc-20160816; b=lyN0j4IOD43Eiix2Z4BcdjyASpvD5vwPs3u0tY6779O2bRG+8y89I/yK+KalX9qt4R FpG9YEdPAgx4qHT+KHdIdeSuCzvNGjPBtOkIbxjUM6WKl4IsOrAxe5CAGVAV9zcv8M8Y SQG8jN+/PuT4GbX65Bl9bqgkgi2oYuKqqQdZHVuLquc0b0s0lhlHDRt3lnNi8N1OgCXx G/RKVzdOL3c5mhbjEKv8VDUDF6Nn16r8rGMh8EtKtBgnK5TNWT5MGpUE7pvqiB53BdPq GWAtd9sP7M74hIwynEJjFJjfxiSEkwRFRUt+CTTY678cYMCDdRTlKoG5LedH+qcN1wnD C4Wg== 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=2nrFUVAjIJDqM6i33IqHSsMD74cXNOTDqpL/IuRzyLE=; fh=m04ifUpmHbaoHyl8foNAkjI+dqi78IC+NYWe4LMKXXk=; b=GCgBvmt8bg/QNKAwLDt2jw0lmb5gL/NE5Cnqf7Mt6Q3xY0nbVDSS3IsZwRYADanPOM 4jkxgLg+snbn3mewtWh35cuK+UHxzXZ9gzZGASYfUCLiCCh4HPgoilZNnvcQ34d8cfur hlbY/uUmYE/QMZ3kWXCxlseWB/cfV9ucdoJXB6VXOPCIWkgo2YQpiqiUi3Vr7X1pdYcD Z3Z/zX8gbl7iMl5mgHq3qTBA0c+C+wFIwEufyT3FA9haAhKRjifdw+m7OHCQkZ7a8RLV CRJrcSqFDbur2DXpBD6YOHU/GZ8Y0neSORfQeq83YKeEbsivnhkVKlgxcDXHRB58EEF5 g+2g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b=wvOqXB1c; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=rZ+qrFxL; 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 2620:137:e000::3:2 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. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id t10-20020a1709028c8a00b001c9b94ed143si7835002plo.623.2023.10.24.06.01.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 06:02:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b=wvOqXB1c; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=rZ+qrFxL; 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 2620:137:e000::3:2 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 B873280B12CA; Tue, 24 Oct 2023 06:01:37 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234534AbjJXNBZ (ORCPT + 99 others); Tue, 24 Oct 2023 09:01:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55810 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234536AbjJXNBG (ORCPT ); Tue, 24 Oct 2023 09:01:06 -0400 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F66610D3; Tue, 24 Oct 2023 06:00:58 -0700 (PDT) Received: from pps.filterd (m0246630.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 39OCJPpA003626; Tue, 24 Oct 2023 12:59:53 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-03-30; bh=2nrFUVAjIJDqM6i33IqHSsMD74cXNOTDqpL/IuRzyLE=; b=wvOqXB1czDIpELjk2LIgMOIuld/zIIk08XRdbUtjF8A7MKanzWkI9n4VV9Di4KYiFaMq mrhggEKRheAfGw50fmVyn4C1ygP40Q98NF6rpXlBYnbPorGO0X2/bNx6YFX9bTN2ZlIe oJ72r6xetPCoZlIQSE/uW1F2tWrIahk7/f6d/ENs7HO94CbFFGsVkBBx9od1a9nWCotA vms3+8tg7BTo3nm/M2rCT35gMibc3lL5IxtgIYLBs53Qs9moifAApedp9IWkVLOHWLSh x8dQHbtNZILQaHO1ao+/A1zyVOvEgUjUPRhDqA71rG1p9AtYXnPP0aa9oYpNGdEpNve2 ew== Received: from phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta02.appoci.oracle.com [147.154.114.232]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3tv52dwcns-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 24 Oct 2023 12:59:52 +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 39OBGHVJ014244; Tue, 24 Oct 2023 12:59:51 GMT Received: from nam10-dm6-obe.outbound.protection.outlook.com (mail-dm6nam10lp2100.outbound.protection.outlook.com [104.47.58.100]) by phxpaimrmta02.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3tvbfjg4tr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 24 Oct 2023 12:59:51 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FCH3L4NcTuXVn3b1atEDyzefmwW0oypSLZMhd0msPhjanT0LMpKD1VsnS4FP44oaFwpXXOBc/Fsm5I77SESvJWeBfMF6ZKxtU0dSbBXxKaUc88MlWHrIelgLDLcL+iiRpN7ZPszwlJQIBpEwhXJXnYiU3vx46y5wAuRY52ocb5k617tO1tTskI/bNoOFTeDwfXBV8Fp7iTu8FGurN5byLzC19EAlANiseJqNJXNN2aeo4ZIGuvsTYeDbhbvKtC/YhJZyxYsxaGoKckUOAxN3W29rDuHG0pZfjdFoHnC9XG3lq0U7St49cqGKssYJSaEqwtjZOQt96z3Eouh5Rf1R8w== 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=2nrFUVAjIJDqM6i33IqHSsMD74cXNOTDqpL/IuRzyLE=; b=ThwCUXGbnOqyRw2j5DRdTGtyz1aX3YlkRtWPibXWuos/dclLgpuAYtEUrj/nQ+hklHgCYWMFM6fLeTwSzPJP8VeDnIjKb2bT/PDsNdkp6i5pll5I0T1/FMceDHcqLLeO+s8I4C9awEJpR5IpESwuak0JTV6w2Kb6cTyW3JnX8Qy66gUqmpLjpj+IdZbKxgHHJgRQcfjp+YQn07WgV1vRzqWQ2ZcEoSkRakje1co75W4Ofoutd+paouFcm2GLeMYxM+TGNbEg/y87t1QuXxqGLwNLsDEE+uBYjFK3eLKLoDUA3VegU/iv5udT3MsUKgUr3OQaqi6/UQYweVnOm1is9g== 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=2nrFUVAjIJDqM6i33IqHSsMD74cXNOTDqpL/IuRzyLE=; b=rZ+qrFxL1iyfEaasJPB0WtqyQmQQgT11rbbKIrRMniBFNr2kQAKIDstrqkKdnaHi4sicVxBB8PpGxEfwo7qMWIqFos7Wkl2r+NBKmChfNRjpKT+Z1WPb4yps79c/b4H/OFtyHMscaYvmxftuKY5PlevclYl4IjIquPDAbQl3itg= Received: from DM6PR10MB4313.namprd10.prod.outlook.com (2603:10b6:5:212::20) by SA2PR10MB4794.namprd10.prod.outlook.com (2603:10b6:806:113::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6907.33; Tue, 24 Oct 2023 12:59:46 +0000 Received: from DM6PR10MB4313.namprd10.prod.outlook.com ([fe80::2c06:9358:c246:b366]) by DM6PR10MB4313.namprd10.prod.outlook.com ([fe80::2c06:9358:c246:b366%2]) with mapi id 15.20.6907.032; Tue, 24 Oct 2023 12:59:46 +0000 Message-ID: Date: Tue, 24 Oct 2023 13:59:41 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [PATCH 16/21] fs: iomap: Atomic write support Content-Language: en-US To: Dave Chinner Cc: 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, 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-17-john.g.garry@oracle.com> From: John Garry Organization: Oracle Corporation In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: AS4P190CA0005.EURP190.PROD.OUTLOOK.COM (2603:10a6:20b:5de::17) To DM6PR10MB4313.namprd10.prod.outlook.com (2603:10b6:5:212::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6PR10MB4313:EE_|SA2PR10MB4794:EE_ X-MS-Office365-Filtering-Correlation-Id: 29d5d8e9-f407-4368-2a09-08dbd4911971 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: xCQYOLVmGJ+dPriZJUp4QmVeaGuXp4CYYiBewmepaVF2i1qLXekEAneFzGcTFzwjR59u3p5nY8Z1KCOgUVZmKeMHbApFFYII0edORn+yB+Nh4KS5kFGbEs/bp0b5nTUlVaTVDmJFjq0fKDi5gGdWrVJv5x9Pl2ZjXct+Ce0odoQtbdN1qXYQ43iRe+4O8SHtthSoX3u7IOgFYlNm0N1Qv3kv6sLB6161EkCi3gkePb47qkhvcPMUTvTYLP29zOZlCmq4teyKtCjgaaxeqe+5u9n1hFFvBtCZhob4jIAJJtTrA6+209rikqY1a3Bv/LC/tLLyV7he6MQco62v3OivyvQZIlVEbqMNbfRrzo2036M34pIVwVxYL9s1LN2lrdBm9FxyCldsfm58X9V1DbrblDajMHxGzo7PWpX+mL25c5ZFOcRJZMjPcFwmEWfkDujSVHfyl6I40GYAPz43crSolXJopvWqyy/QWx99MnS3salfWqOPlOQpSuI1w+pYHE46oZJRksVnrYK/cTluPIrzchxjnK6RkFM/pbCJRXe+1wQcNLyvCpjupJWPOsZn7oGaPlBFRsmT0HSbmnSXIG98Epk2LUHrsDKT5r9A/mxhDcbHPQpaYCeUnnCtYCFsIVtK95iY5j+xqhTHHdaxvmfkOw== 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)(136003)(366004)(376002)(39860400002)(346002)(396003)(230922051799003)(64100799003)(186009)(451199024)(1800799009)(2906002)(6916009)(38100700002)(66556008)(66946007)(66476007)(316002)(6506007)(478600001)(2616005)(6666004)(53546011)(966005)(6512007)(6486002)(83380400001)(86362001)(5660300002)(31696002)(7416002)(36756003)(4326008)(8676002)(41300700001)(8936002)(36916002)(26005)(31686004)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?c1crU3M0bFpvR0RrZTMvRTBpbTZZNkpIckdqWGVaTkc3V0daRGdUUVg4K3M1?= =?utf-8?B?YzZr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= =?utf-8?B?dC9nZ3FJSXIrSEhaQy9ycWtldkNBYkVmRDBENEdxNFUyMGNDWjY1anF6eG9E?= =?utf-8?B?YklhQzNmT0pOTDJ4MHlyZXkyUEtKcGVDSmNYLzgrbUpPYXdqVUlUSE5CMzdC?= =?utf-8?Q?IQovb50adD7wHDv/az8p8kWQNTo?= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 29d5d8e9-f407-4368-2a09-08dbd4911971 X-MS-Exchange-CrossTenant-AuthSource: DM6PR10MB4313.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Oct 2023 12:59:46.7222 (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: ZLlX1OxzaZdRExeoimQR4/L8ZJWiFvFr97QLTsSt/ytKQqjHsZzKIkJhjDHHdqyEvB7zzCL440aiQiHe5yws8w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA2PR10MB4794 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-10-24_13,2023-10-24_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 adultscore=0 suspectscore=0 phishscore=0 malwarescore=0 mlxscore=0 mlxlogscore=999 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2310170001 definitions=main-2310240111 X-Proofpoint-ORIG-GUID: 2WbGwI1wS6xt-XVE8a6-U0RV5DQ8uRBi X-Proofpoint-GUID: 2WbGwI1wS6xt-XVE8a6-U0RV5DQ8uRBi X-Spam-Status: No, score=-4.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS 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]); Tue, 24 Oct 2023 06:01:38 -0700 (PDT) On 03/10/2023 05:24, Dave Chinner wrote: I don't think that this was ever responded to - apologies for that. >> n = bio->bi_iter.bi_size; >> + if (atomic_write && n != length) { >> + /* This bio should have covered the complete length */ >> + ret = -EINVAL; >> + bio_put(bio); >> + goto out; > Why? The actual bio can be any length that meets the aligned > criteria between min and max, yes? > So it's valid to split a > RWF_ATOMIC write request up into multiple min unit sized bios, is it > not? It is not. > I mean, that's the whole point of the min/max unit setup, isn't > it? atomic write unit min/max are lower and upper limits for the atomic write length only. > That the max sized write only guarantees that it will tear at > min unit boundaries, not within those min unit boundaries? We will never split an atomic write nor create multiple bios for an atomic write. unit min is the minimum size supported for an atomic write length. It is not also a boundary size which we may split a write. An atomic write will only ever produce a maximum for a single IO operation. We do support merging of atomic writes in the block layer, but this is transparent to the user. Please let me know if https://lore.kernel.org/linux-api/20230929093717.2972367-1-john.g.garry@oracle.com/T/#mb48328cf84b1643b651b5f1293f443e26f18fbb5 needs to be improved to make this clear. > If > I've understood this correctly, then why does this "single bio for > large atomic write" constraint need to exist? > > Thanks, John