Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5523722rdb; Wed, 13 Dec 2023 11:02:40 -0800 (PST) X-Google-Smtp-Source: AGHT+IG9m0Zmdk6H/3rd1//FtB7/hkPSdywECQloicObr7BnWyYQih5l8oJX9p8GXHj5BMR/Q/Z3 X-Received: by 2002:a05:6a00:1993:b0:6cb:b818:c7fc with SMTP id d19-20020a056a00199300b006cbb818c7fcmr5343516pfl.23.1702494160090; Wed, 13 Dec 2023 11:02:40 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1702494160; cv=pass; d=google.com; s=arc-20160816; b=s2hVlOdHnXtUWcHBZgOnwe74lV1M3BO7oQXNETyfc6TQsiOpGPcEiCAIqQ58VITpta twjiM2k5hBJlaaeeI4ba0Kh/xd+qp7SvxKpjuU1cMy2JwIXBmKP8Uracb+Ok0zPrkyem yfNJyNScUBCSDo1iFBFFB5U2cYQx8cmDXin/nFxrhPeVvVr9MtVa7Oj1pJmtgatFiRsP CWNJmsP3oxpS+rVvzDAyHJDNzwz94EM8g9p/JooH2jXXXjSu+JJXMrsI87bFakRd5Cc5 DkU/2KWR/BLHeZP/iuRJqmD3mI1nm43Piq60bVBnp4w8cVgO+qLWvicdzhmv21YsX8nk MW1Q== 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:content-language:references:cc:to :subject:user-agent:date:message-id:dkim-signature:dkim-signature; bh=FLriMew6PSfP/imqwlsDrPOFKr9LQdFHU6VT+lK38HE=; fh=lDi/8xb9NVbSeknx7Ky9kh64e+hQIGehCZepUXkoLzc=; b=sCrRHx9IezHwQcCXs4bPJ20aWHwrlIVHepF0xbSfrxH99EDtvXUBMBZ5eGBlX3t9P6 y+2pMpR16gABte5fCR2KTNsw5u/nGKeBfgnndvg/X6LIPcglFwSJofe+YnvDSfG/m+D/ 7ynTM9hXgW9Fwjk0EIlV1JY/cJtpsY+5w8H4xz5Cr3EVIIIgziqHJmExQXohooztfI0A ZyHHKXkFjo/tU1OOiSWlqtUfjCBcACgadmXZVhPT4Y0oxCwrEAownhrlLc9LyESGCMFL HY3bHlLMbxcv8IZxr7rPmiEplUjXOYbdxmtvgcVFIXO1UsjILep0crrsQ1AJKn/RnXNS RZXA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-11-20 header.b=BrRY10Rn; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=nWXNh3JC; 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:6 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. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id b14-20020a056a000a8e00b006d0d40fdf7asi1310882pfl.228.2023.12.13.11.02.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 11:02:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-11-20 header.b=BrRY10Rn; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=nWXNh3JC; 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:6 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 DB2F2806C607; Wed, 13 Dec 2023 11:02:33 -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 S235440AbjLMTCR (ORCPT + 99 others); Wed, 13 Dec 2023 14:02:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36716 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233516AbjLMTCP (ORCPT ); Wed, 13 Dec 2023 14:02:15 -0500 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD290C9; Wed, 13 Dec 2023 11:02:21 -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 3BDEQx5N020988; Wed, 13 Dec 2023 19:01:30 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=FLriMew6PSfP/imqwlsDrPOFKr9LQdFHU6VT+lK38HE=; b=BrRY10RnviCTJucNRTAtU59AXsWavwGWV8aHYUvjhuUQAyQe6gmRLtyIWdW5TqH/JPX8 B6aIhDH47lFYe9PmE07VobGaprNCH2lV7gDQfL7xtSeLKEaFDc8Lxf3d/vZ4bevW4T35 0dFYVY4Nnbsa654tSefIa4CiEmK2qaZziXgw35wNUF2UPF+JkPAng3awn8F4BUOzfP0U +nfePk6jm9yGQ+Zf+tRTDESqaXUl70A1Dq0mklHYhPP2kQ0tUqHC+KqDkA0QyyD/JQN3 bjK+vjxdzaN4eUYNXoqdf5PuOsPq//bIP61+1eINRFhRTJg/CQEmOhED5h5bFhInrqnW ew== Received: from iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta01.appoci.oracle.com [130.35.100.223]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3uvfuu915p-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 13 Dec 2023 19:01:30 +0000 Received: from pps.filterd (iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 3BDI5xTj009848; Wed, 13 Dec 2023 19:01:29 GMT Received: from nam10-dm6-obe.outbound.protection.outlook.com (mail-dm6nam10lp2101.outbound.protection.outlook.com [104.47.58.101]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3uvep8t38h-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 13 Dec 2023 19:01:29 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WoNaf1SoELwV7YaoNxhQnsqr12rOjUANN9GZJ9xQ6Css7WZSqP4QXKDrDgYXaetiQcb/jIA5UZKWF10AXmcumtIjfp/FjLx0bGZ5gD2swBFZd+IokODXHdisLhTgpKR6/Y0K4VRVgKZkB6xjmHY5x/rSyinURIuKmcaaiMb432xxoS7UQ/mnK0OkJ/yV20joiAhYnD14VBIwq3Fyjv/hF+hz2bNrJcg2/2VCZyndIItWGPzQ2RqAQwmC2PT2K+TKD+DM+j4wYKd6dhpBoxddZO7UE/E7+i1o0mGVqpkdHTDgkBNPyoVUs+ADnVGkIBN/bRoDY1iQ+bDcF4eUNg4N+w== 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=FLriMew6PSfP/imqwlsDrPOFKr9LQdFHU6VT+lK38HE=; b=fvSb9IjJT8XQ9sSjRDEfuP98lGKDnw+J8LJOlIYqFU7DrQ0XItZWGWTWuxfS4FT0JbD5XKg/UYelJfPClRRh33tXMW94i/MHQEn9egxH4kiyWt4kIWkjFt9XLUy8oaYkCMoU+YXEoiCoQ87vPc1ygprP5A0gZQ5j1JwNsU0A5Hfkvkni7VtQC09QvK1MfafPXVB+vvCb/icEQv2dOi58ya499RaJr5tIDRrhBGXOOl2XfE/ilvRSBZ4KFw34Xrha3VvI72u589/7vQUcBnf3CHeNe3zjIBOsiICcvtqIexE5l8Pxp5cKyvTQuKJJbRy5+d4Eo4B6oKsiYsI/nKhpIQ== 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=FLriMew6PSfP/imqwlsDrPOFKr9LQdFHU6VT+lK38HE=; b=nWXNh3JCigo78LnITC1pySny0GD3EHV+KZyk0DmJBZsmsHO2YUNlOHHCNhOdeOYRHXBkzYp+7w9wLGB/lHhW9FXP4iXnuTucBuArkeQ2A0g2q135UYpZh78puhvdCvekd78YDPua/Laila0Rt93G5RZW/gBcyYuIoWUIpOAKy7k= Received: from DM6PR10MB4313.namprd10.prod.outlook.com (2603:10b6:5:212::20) by PH7PR10MB6250.namprd10.prod.outlook.com (2603:10b6:510:212::8) 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 19:01:26 +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 19:01:26 +0000 Message-ID: <15255c5a-82ec-4ce1-8caa-da250fcb7187@oracle.com> Date: Wed, 13 Dec 2023 19:01:22 +0000 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 01/16] block: Add atomic write operations to request_queue limits 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, 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, jaswin@linux.ibm.com, bvanassche@acm.org, Himanshu Madhani References: <20231212110844.19698-1-john.g.garry@oracle.com> <20231212110844.19698-2-john.g.garry@oracle.com> <36ee54b4-b8d5-4b3c-81a0-cc824b6ef68e@oracle.com> Content-Language: en-US From: John Garry Organization: Oracle Corporation In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: AS4P195CA0025.EURP195.PROD.OUTLOOK.COM (2603:10a6:20b:5d6::20) To DM6PR10MB4313.namprd10.prod.outlook.com (2603:10b6:5:212::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6PR10MB4313:EE_|PH7PR10MB6250:EE_ X-MS-Office365-Filtering-Correlation-Id: 7f8eaf05-35e4-46e4-1616-08dbfc0de81d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: nJo/S4DuXkTeNOEzKT0ZmGUGFgUPxfv484iM2gzaz5c/3wvE659fbwI05XnGsDNB9ouVin9YLmbW1ijkE6q+rZNG4cIqgFAzRQ+0E3A5Ki4a5TOLW8Ge2yYDzBmj+0uUheXe8sgt/FNLSunnx43cSQipjaH54RDlG5v87PBdVOFBOyrLA/oD/2isDuyXi3uoHKr/G1ylkaRgWvyvIy4WPQo1vPZpD3Ih9WuK/jQ0ea7ev3X5x22WQW7SD3iOtndQhcnsXbS8CbIK4D8oinTijCI4KNpcjH/MomAF1zjXlldXDD6rBBC4UJZ1LJ2hqcKNOgR8blOxSmtiOkJy9aXA3XSJwTqFndexYS7tpnV6fWwLVTdAh8ic1Bh6hV/7XZt9stMwDe6O9LY1MF/wKYDni+rHZaEtU4PNjeSvuBHtGs12cMZv4FQAIbVd3n9v2FucYbhKPPPJBVVPTVKmCSMLGkd3hZIUwk7RnxUd6JAULTvm4ojPpsA8BxwcwuQoxD8xMOMyWXJjGRhfhBlnNohIqd6MpSQ8r2qJ1M64bkzg2Ye59A/3nnq3MiUtOa4GdcA/92YqNFK0dF2O2aTCDV/uKroUalfMw7G5fZuJlEJ+5PHUmr8PvbQyWegyhPkPs/Q5MZQZFOgyEEmGsA9zXwGRFw== 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)(136003)(376002)(39860400002)(396003)(366004)(230922051799003)(186009)(1800799012)(451199024)(64100799003)(31686004)(478600001)(107886003)(6486002)(6666004)(2616005)(6512007)(26005)(36916002)(53546011)(6506007)(41300700001)(38100700002)(31696002)(86362001)(36756003)(5660300002)(6916009)(66476007)(66556008)(2906002)(83380400001)(7416002)(66946007)(8936002)(316002)(4326008)(8676002)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?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0R3JKQjBPdnNoclJqWjQ2bnFQYkszR0FXc0JOVEVzWDVh?= =?utf-8?B?QmZ2MlltbjZUdTRzWHoxQTNoa0pPejY5OGhQdGd0RFpZbzFmRktYY01vNFg3?= =?utf-8?B?UDN6UTBZVC9KY25CK1paeWlZVDBmQkRBQzJYTjMvZFZITXQ2b1dDZmI4ODlF?= =?utf-8?Q?yXoOfL9l88eg4eVdGWMUpZfE1WP?= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7f8eaf05-35e4-46e4-1616-08dbfc0de81d X-MS-Exchange-CrossTenant-AuthSource: DM6PR10MB4313.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Dec 2023 19:01:26.4463 (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: +R6nkktdHEi+ZXUYHGcmykUMBCzYowgBFZzTxRRp+OHcQBUSV9uC6QSFgUQgX/WvMdtIG8GPJniztbh3BpK2dA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR10MB6250 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_12,2023-12-13_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 suspectscore=0 phishscore=0 malwarescore=0 spamscore=0 mlxlogscore=999 bulkscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311290000 definitions=main-2312130136 X-Proofpoint-GUID: ZUuNZwbOs2fDkzcsXqOzPntt-P3QAoqD X-Proofpoint-ORIG-GUID: ZUuNZwbOs2fDkzcsXqOzPntt-P3QAoqD 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]); Wed, 13 Dec 2023 11:02:34 -0800 (PST) On 13/12/2023 12:28, Ming Lei wrote: >> For NVMe, we use the logical block size. For physical block size, that can >> be greater than the logical block size for npwg set, and I don't think it's >> suitable use that as minimum atomic write unit. > I highly suspect it is wrong to use logical block size as minimum > support atomic write unit, given physical block size is supposed to > be the minimum atomic write unit. I would tend to agree, but I am still a bit curious on how npwg is used to calculate atomic_bs/phys_bs as it seems to be a recommended performance-related value. It would hint to me that it is the phys_bs, but is that same as atomic min granularity? > >> Anyway, I am not too keen on sanitizing this value in this way. >> >>>> + >>>> +/* >>>> + * blk_queue_atomic_write_unit_max_sectors - largest unit that can be written >>>> + * atomically to the device. >>>> + * @q: the request queue for the device >>>> + * @sectors: must be a power-of-two. >>>> + */ >>>> +void blk_queue_atomic_write_unit_max_sectors(struct request_queue *q, >>>> + unsigned int sectors) >>>> +{ >>>> + struct queue_limits *limits = &q->limits; >>>> + >>>> + limits->atomic_write_unit_max_sectors = sectors; >>>> +} >>>> +EXPORT_SYMBOL(blk_queue_atomic_write_unit_max_sectors); >>> atomic_write_unit_max_sectors should be >= atomic_write_unit_min_sectors. >>> >> Again, we rely on the driver to provide sound values. However, as mentioned, >> we can sanitize. > Relying on driver to provide sound value is absolutely bad design from API > viewpoint. OK, fine, I'll look to revise the API to make it more robust. Thanks, John