Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2593250rdb; Mon, 4 Dec 2023 01:48:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IHfdrApQZPeW2Oa+6IubWQbbals2WbkopSPGr8+CZuun3V7Ig5sd8T2frujatbUz9R1296J X-Received: by 2002:a05:6358:917:b0:170:7b0:2bc3 with SMTP id r23-20020a056358091700b0017007b02bc3mr4569460rwi.0.1701683335217; Mon, 04 Dec 2023 01:48:55 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1701683335; cv=pass; d=google.com; s=arc-20160816; b=SSDG0kZCjzpa8hwDf56aPzGZimLbsgePcZWyja0v2VmoMDZLRtyXc2Vfe3+PrbvH74 sRlWuTGjE/3Bpz+PX9sCcuzdCJ4DtZyRWDEiQrVz4hhKGSNX07VSCjrQWMOI5gK+ga2j wtiBfJRp/a/M2bXYQhMW/0qfpAh0Wh7wzdjwWf8IRgaFmn5JBoMU+2s6x4shngvOq2Tv QG/FRSS+c1OHW966cf64AkSUvNp+OIR9NKLBdkl3NF5VO6kX11IACL0CwKNI9dhbpePN 2QP6XyjSGWbiQYNyeB4lLen5mgXdYMsBiUyvGpI7mzICNEywhOH4b/tQniAcYXpds00/ o++w== 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=XGx9OY7irmvDw8LBvMGoJASKgqx+21oSelP6FqtXb58=; fh=eohSbp/eZpkB4uCsoX1G934MJ07KRQXmNjJ4fX0rTK8=; b=cf97ahl3NHCXVThqT+yOOozk67H/FAmQB50URmS0K3lt1cPLfaPgWl5xgnZQUgpuSd 9/g0Nv6j5VBdRPz8w73CKNezumLdIdFnHZ9vKXgTom+Ey1/6sFyRNnzZzFakqPImB4tv /ssggCqAL50FoMvYvkGbL1dcdA8KAgka2VvniRYmx/uiCeoNCAkzNP0ZVHK1Yvf6Jt/V pjbIUAt2nTkLcH4uq7NolEDfznZe18mYR5e2mE5N9hoGGoUaJY7eP6YTqbmp+YMM4D0P izc3jQQOc6Qk+MYYcAAGxRFZcyFhUNvQo2Ob4PgDb7F5daKyXueA3YjewxZH8RDFIH+V UntQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-11-20 header.b=mJV9Ikd3; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=F8ZXv0pz; 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 q7-20020a634307000000b005c625d44bd5si7407539pga.281.2023.12.04.01.48.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 01:48:55 -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=mJV9Ikd3; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=F8ZXv0pz; 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 8C5658099CF6; Mon, 4 Dec 2023 01:48:52 -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 S232586AbjLDJsX (ORCPT + 99 others); Mon, 4 Dec 2023 04:48:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48362 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230204AbjLDJsU (ORCPT ); Mon, 4 Dec 2023 04:48:20 -0500 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CD346B2; Mon, 4 Dec 2023 01:48:26 -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 3B49HYKS021232; Mon, 4 Dec 2023 09:47:52 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=XGx9OY7irmvDw8LBvMGoJASKgqx+21oSelP6FqtXb58=; b=mJV9Ikd3t9UWnBBCuxo/wHzUbii92nBfieW4klb91WQFegIYtqaNZicR0warFpUaRmtK mojxfILfvNAgtM4qewNpf//8/eRILP8CpkV8BzbZ5BujC2V7v0TR81Kr+6DpnGILIi8K bQl5BF48+w/oCs5SWKrr9cdP0eYNnMUS7o/bC8QPnHfZWDEaiFhMRQzk6tAghbL2ivlf cv5IzsGO5H21nWVk5YqtaZTOYTPhO4sMssu2E3N3pa2OmxLMxqKR9l1h2fEwTY0iVU/I aclZH1cLl5/Xks8Vr78v3zROmcRvl8FVFFPzRLmZ/Eq/TEOQcoEr6g11jvXwds27phqM Fg== Received: from phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta01.appoci.oracle.com [138.1.114.2]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3usc0fg3wm-62 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 04 Dec 2023 09:47:52 +0000 Received: from pps.filterd (phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 3B47k3Kf005969; Mon, 4 Dec 2023 09:35:26 GMT Received: from nam04-bn8-obe.outbound.protection.outlook.com (mail-bn8nam04lp2040.outbound.protection.outlook.com [104.47.74.40]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3uqu15achg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 04 Dec 2023 09:35:26 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PyaYQB8+ZDFKy95P7KYl5tMctftXdw7+FRvpXrmbolrtIXyT/iFVGEzjxlSyP3bWV/let2t8WDqhjM6FaDzjfsn3fnH+DsaJ25HLnfzis24mbLdIRxbZhRTzYhQKaSMNLTSJFuod6lmIaaUsaZw/8hy13Bm9Fe/xnNOFBF+MpRpRLyL+HYSBvV+Wmw4XnQTl+QMINdkVhvpbnwVFcU5VR+H4SshDWrWjNdtsSZiJftiQ5hqyJBMxOMUp+hPiZcQn66k++tB8ILEw0Lu5le4H9nC26ogx1cQiP/TgenLInGZtHslAvY26dq5UOknxNdlBZ02Q+PkVvhaGpSNYcpZZJg== 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=XGx9OY7irmvDw8LBvMGoJASKgqx+21oSelP6FqtXb58=; b=XYmdoqyfaRGqpisR5YS75oFgq3JSHmde75bDKDl8rRlzjxHSiPsxdKdQ7ccfvYq2SdtvEhNPiPCLFR/PmDuohL4G8yiSxMOQ2YenrfDlz5/Iqu/z/DNHFPuH1nIt9nI9qh771tyQ3KwN05gDXBDcO1mFR/0rLIwjD4LmNk+OjuaUxRukQGKBWfqXjpvpbI/nR5/MSDWBumHvWTxQ5u/V/sky7KJo1CuTEAIUnioB6cLFP1xJ3H+RrG0azq9pi9T1bINwUIF9g1VEqiXUrDsNyCHz8gGtRrW481G+ny3K76ltwh6eC1scRG6eqcZM/og+yTYN0efABm0PZTgSRIaMDQ== 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=XGx9OY7irmvDw8LBvMGoJASKgqx+21oSelP6FqtXb58=; b=F8ZXv0pzqz7z+kBziAmQ9bZbTNDhxz7D+DrOv6Dw3/de4dTcLMDinwY/1fOKQ9InaDID0wTZv+w07FqNRF6B0gVggmFIq1t9jHnlJQGbP9ekx1QhRdYsWULpC9LI6pzR+PeDU+E86FuVeldxNkI8pu56jfWsHVSDqzoqSB27Bdk= Received: from DM6PR10MB4313.namprd10.prod.outlook.com (2603:10b6:5:212::20) by SJ2PR10MB7656.namprd10.prod.outlook.com (2603:10b6:a03:53e::19) 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 09:35:23 +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 09:35:23 +0000 Message-ID: Date: Mon, 4 Dec 2023 09:35:18 +0000 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 02/21] block: Limit atomic writes according to bio and queue limits Content-Language: en-US To: Ming Lei 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-3-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: AS4P191CA0019.EURP191.PROD.OUTLOOK.COM (2603:10a6:20b:5d9::9) To DM6PR10MB4313.namprd10.prod.outlook.com (2603:10b6:5:212::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6PR10MB4313:EE_|SJ2PR10MB7656:EE_ X-MS-Office365-Filtering-Correlation-Id: ec379542-c92d-4756-c7dc-08dbf4ac5724 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 6jx1w7fIh32vQ0il/GjaOAkQ7a7j64uV3QTf6jnxbJM52tt4TvRrsTgeZraQbVRHt0bT5uYg3NVm27lDS3ljcBMRGGvWi7QBhjPyYKWVvh2SsG/fsditV0G+41XYXKgyLw2CIk6pBPKeAmX2mMl1zu3ofIrCzpwwjXHsuZoPMjmRu3NbJ5L8ppDtBm0u3Wf9FZB18iv9pRz1uVMlojS0IOB5HFTlOUO623y1mbfjv/SzhqIQmK5s9l8i0ExYiUxgXMZN6zRTC+VokjRZMVW65t9s25ufs6vupyBH3kXjW0rzjcKykLgsVpKf5W6xPnmI+mdiwW2/NaaZqokGItFUqT4SAepEorTfIzSa9/DkWmECFtwtXesEgQPwL37FkXolrJzvT7GLkK20qxZlGyJ/iOLn2CKaRutf/YqyQVe5qrUgnQZIDqX8iYHJ/1d3jO/gQWnO8+8+RY/F9beu0US4imU1iWT9omR6IeBffqvXVZuh3G7NRT47ftkd2a0bYwDwVDfFAz9utNS8RL4AA1D3sQ/06MmajGx+PsCwDgDA4mlmrmXTXTxtBp9L9VPKDFL+RP9IlIUpVIrbwEaJxElc6Epzjs1xMuLU4juvBt9CL5TOBIQ0yY5iK0eJjURfjuS6E+nJuZVIHHXEwCw/i5eFNA== 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)(376002)(346002)(39860400002)(396003)(366004)(230922051799003)(64100799003)(1800799012)(451199024)(186009)(2616005)(8676002)(8936002)(86362001)(83380400001)(38100700002)(53546011)(6506007)(36916002)(31686004)(6512007)(26005)(6666004)(6486002)(478600001)(6916009)(316002)(66946007)(66556008)(66476007)(4744005)(2906002)(36756003)(41300700001)(31696002)(4326008)(5660300002)(7416002)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?Tk9jQlVOUms0U1k5b2lHTXV3T2ZLa1N6a2VPeVdPOGhTWmh2eGNFcHRYZUto?= =?utf-8?B?QldvTzlIVW9ORGFQa2FpYXdTR0N0SXppU2RqbWRDV3krOFNrQjB2ZE1XT0Ry?= =?utf-8?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0=?= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: ec379542-c92d-4756-c7dc-08dbf4ac5724 X-MS-Exchange-CrossTenant-AuthSource: DM6PR10MB4313.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Dec 2023 09:35:23.8858 (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: 96w5qNAANp0OdINdt8ZOMKOqe+QM1ZTtw3sUyDRQmkFQm8CRig0F1K4hq/nMnbAVjOcb73HKwTn4Aay5bw45Ig== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ2PR10MB7656 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_06,2023-11-30_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 suspectscore=0 mlxlogscore=999 adultscore=0 phishscore=0 malwarescore=0 spamscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311060000 definitions=main-2312040072 X-Proofpoint-GUID: NHfy_dSQwI_vO_hWpkMoQVdr5fHwZauk X-Proofpoint-ORIG-GUID: NHfy_dSQwI_vO_hWpkMoQVdr5fHwZauk 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 01:48:52 -0800 (PST) On 04/12/2023 03:55, Ming Lei wrote: Hi Ming, > On Mon, Dec 04, 2023 at 11:19:20AM +0800, Ming Lei wrote: >> On Fri, Sep 29, 2023 at 10:27:07AM +0000, John Garry wrote: >>> We rely the block layer always being able to send a bio of size >>> atomic_write_unit_max without being required to split it due to request >>> queue or other bio limits. >>> >>> A bio may contain min(BIO_MAX_VECS, limits->max_segments) vectors, >>> and each vector is at worst case the device logical block size from >>> direct IO alignment requirement. >> Both unit_max and unit_min are applied to FS bio, which is built over >> single userspace buffer, so only the 1st and last vector can include > Actually it isn't true for pwritev, and sorry for the noise. Yeah, I think that it should be: (max_segments - 2) * PAGE_SIZE And we need to enforce that any middle vectors are PAGE-aligned. Thanks, John