Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2480393rwd; Wed, 17 May 2023 10:15:34 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6A96t8OrqBXa8ogiorGBxsGB+BOxnDbObOSVElEULEyLojbnmehDuYwoi87uuA/9XWj3d/ X-Received: by 2002:a17:90a:130e:b0:253:3c75:11a5 with SMTP id h14-20020a17090a130e00b002533c7511a5mr446886pja.4.1684343733736; Wed, 17 May 2023 10:15:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1684343733; cv=pass; d=google.com; s=arc-20160816; b=h8Y8/SsTIgRNq1Z7Qhpe0Bb1IJIhq9hllBZry3Ggz22kYSqOp1AIi27EUru43R8Lhm aslG3++qaukTS/3r86ikjC+RGuRTGXLA2vjbUAJHU410Hcddzpo+KUnW8PLgcfE4uwYV nS2VXXBfI9Lqm0XaqFkKpJW/f87xJISF4dHE1V/wkWYIwQuHIRk5MsYMvHfsUwRMSD6c oz6celpqErb5bFtshDMHfdUeSu24mUtdnzb86LD8TumAH/bO+/1oVFrVC0HoCKoi3uQl bR5NE1ie9gGEmJcj1ch12wZ0pnrKvlycHGGkOM9jzaaYUx9mnez5MmRfzWPvq9nQFTG7 utMQ== 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=DbO+6RvnoPipjVHAznIE8SL314W7nt07DuuylCE2byU=; b=KcDwxAO3rWKFL4e5BwUvzrpABzipd8hbLu6tRm0FxZzVYLAxCZNVel/EPHyPBDOyg1 UhHM8UrV1972+Bj1Ls7ZbTIHRjaOQWzuAHDl4ciVtNHjcJKFY0t9Q62s8TW1firxnlvr xILjsB0NwykRZmy6r9+gKDjQApuGhfXjPGKrEBDV+UjPoqBkxRUoz2k+NdqoImdyOnXy pCvwKsKsNuSW4Qd9jlL89KF4jJtt9bwsTNPbCEh6eBIk5nVs3knBCMFLWRs0VZjb2OsC hFc4cmg+sypzeo2TfXFQ5F2tnw/XMIVNo77tFvPrfUt57qCowohsWZO2+sJMCs0zNkeB /GJw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b=uZHdLAqO; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=LhcmoXC1; 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::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k2-20020a17090ac50200b0024e1138cd9dsi2036918pjt.157.2023.05.17.10.15.21; Wed, 17 May 2023 10:15:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b=uZHdLAqO; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=LhcmoXC1; 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::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229745AbjEQRIf (ORCPT + 99 others); Wed, 17 May 2023 13:08:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54262 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229483AbjEQRId (ORCPT ); Wed, 17 May 2023 13:08:33 -0400 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 70B3F1FDA; Wed, 17 May 2023 10:08:32 -0700 (PDT) Received: from pps.filterd (m0333520.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 34HE4CHA032044; Wed, 17 May 2023 17:02:28 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=DbO+6RvnoPipjVHAznIE8SL314W7nt07DuuylCE2byU=; b=uZHdLAqO71pkxECXSZ8Kln6xn5AGYs4j4WrBQrW9CdG1jgBfT2NyuoUFjx781ocp2vsY +VTb78S7rqZPm2tQy6x0v9ErymIF5EmSe5pYRKs1JrCHt4ZaYZlNqQrySNM/RgbA/vsp 5mbKhRWj+/gJ6bs6l24aGEpsaFmXW7Bok1F6T1tFt/Y/1GTc7wzpy9fL5Oa7koVqd7Tv ofKphLq9JkgJsSmJ+t5xsCZJDkvOTlMzqyKQDP/vtQWZEzxPJ/0a7FfktOzOQoKUGYhR 1chTnaI1Gy6g9FFXU3qoaNTFDRAnlAKw7TAW60cMyXhbp2bi/zf/c8ZZR+rrn8xzjmJO gw== Received: from phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta03.appoci.oracle.com [138.1.37.129]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3qj2kdpen6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 17 May 2023 17:02:27 +0000 Received: from pps.filterd (phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 34HFQi1Q033852; Wed, 17 May 2023 17:02:26 GMT Received: from nam12-dm6-obe.outbound.protection.outlook.com (mail-dm6nam12lp2174.outbound.protection.outlook.com [104.47.59.174]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3qj10669j3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 17 May 2023 17:02:26 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Gegngw6nDrxziioIdtDQ4OLrbdGtt1RnM5YhtOViRBVztFKzDCEvILDlhZ3qpNUg9oYnogpx3TqcyNs/WJF7FTGzlFeJEWN/diZKlJOibeAMLsorYewAwTHO7ZCgoIzqaAxb2PAMED+LqavCf9k7jElsp0J+C+yc5erpOQxq3us6cJP7xXgJ/FBCW9JiZAKVQUOQ/FtSUShq5l4s7tRBWIj+zqRAsRNhh9dvREDNafo1no2fh67DlkkHPXeqbWeXNf+UHkdxjF8KE56hjNQEiBxMWJMrHWgPGanE9/eyEg3qEx5+LxLBP3qHv9gN8Fv4diQ3npB5DgvwD1Is1kuI/A== 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=DbO+6RvnoPipjVHAznIE8SL314W7nt07DuuylCE2byU=; b=AxNqZV2g4vv0C56FaR2S8dWhweQWbgm85/TsImh69k9m2zgaCV16ytdqF3UoJiF2K3YhgsBb3Q83d+N1YnAC3CubXXuvTDwS0/Z7wTpjNZat+xnVhbkjwxZolk0OrOdO5PqbEOBXQxEXFjAmDTONPSjUeQYlpHO0JIKBbQGNscD0FTq8RbGJ6KA+AkwjSLWBZieGNe5tKdtBrkgZNaVGG99IZ9UBfTdrugGESGI8EOeWh/JKngmg9AIAHy7XTemyp7rWyYIUhx/+R198Al69WoVnUlt2a2rxajSxcal8zqO411ZSjWhNNgov55mddwIHQyUmkZqFkAI8wBpryqMg1g== 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=DbO+6RvnoPipjVHAznIE8SL314W7nt07DuuylCE2byU=; b=LhcmoXC1IMBw5jKPFok6YGeyJKUuIT1l2DjP/foufdRHP8gL+NEyfjPL6kv8rzIkQRLzc71MmtRwA1exohT/FO9vQkHgkvS7x9TT3sfA0dqZ0n+4L9qpOcI1A62v0e6m2kteBQ2Y/9+ktRs89T6YrksAkVXbHA3VGkYKrBhy7XE= Received: from DM6PR10MB4313.namprd10.prod.outlook.com (2603:10b6:5:212::20) by IA1PR10MB7486.namprd10.prod.outlook.com (2603:10b6:208:44e::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6387.30; Wed, 17 May 2023 17:02:22 +0000 Received: from DM6PR10MB4313.namprd10.prod.outlook.com ([fe80::8456:ba59:80ec:d804]) by DM6PR10MB4313.namprd10.prod.outlook.com ([fe80::8456:ba59:80ec:d804%7]) with mapi id 15.20.6411.017; Wed, 17 May 2023 17:02:22 +0000 Message-ID: <4c338833-5fb7-5031-ceac-2d735b70c212@oracle.com> Date: Wed, 17 May 2023 18:02:15 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH RFC 01/16] block: Add atomic write operations to request_queue limits To: Mike Snitzer Cc: axboe@kernel.dk, kbusch@kernel.org, hch@lst.de, sagi@grimberg.me, martin.petersen@oracle.com, djwong@kernel.org, viro@zeniv.linux.org.uk, brauner@kernel.org, dchinner@redhat.com, jejb@linux.ibm.com, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org, linux-scsi@vger.kernel.org, linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-security-module@vger.kernel.org, paul@paul-moore.com, jmorris@namei.org, serge@hallyn.com, Himanshu Madhani , dm-devel@redhat.com References: <20230503183821.1473305-1-john.g.garry@oracle.com> <20230503183821.1473305-2-john.g.garry@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: 8bit X-ClientProxiedBy: AM3PR07CA0140.eurprd07.prod.outlook.com (2603:10a6:207:8::26) To DM6PR10MB4313.namprd10.prod.outlook.com (2603:10b6:5:212::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6PR10MB4313:EE_|IA1PR10MB7486:EE_ X-MS-Office365-Filtering-Correlation-Id: e7e97a17-e201-479d-613d-08db56f87b20 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: kZACmKChk/4QEhaPZLmoYIz/Fqek0kYQxwHy8l6UiwYaKAXETX1Wg1ir/yfIhxLoAxNpY3XUyk5Dn48uLZOKOgaRIHqf1ZynVgpKOcYsKsclXLLzDwhw2Y9EUhxWe+HozU1smJ+g+CUyBtq88VPXsDc8/7Ig0d7MmAI+dwlEYJn5e3d0L5UWMbpwMQdKx92PXKdUwMU/XLH4yq2cHULP+IgYd9GzcLchzQeG/N5EgeZWtuLf97ozWTtDXniykD5rR5A1jSNJWrhijhWhNUnpF6sQBQwYr9O/3o1qbg3ohK2ENy2iiZIJD+HOf7lOupk5ULW174ERnyF0L6YIl99qXZnHnKLwY4P3kgM65Cx7rNJ9mzUQKiyeZ2ZC9MguxMFDns5bsYsGqJrFM54WGozPykm8reU28u4SOe4U4XrJ4yTC5TftTGGMZUrZoTfwXmbanXnsDZTP9sEhy8iUN7pYvBSrdG5ERfT9Xe0YGoQP2WauDKChAAr1i92PVJK8rzv9Cu2e7SkdJLvObN86VtaPNZc7HtE2jIlNZcZOMCsArMbDhXvtZkGwILr4x/YMY9JWKlaB/hWUxbBUjNbJczO0Pf1YuO4NtksV2ZpY8YhCt6cZbS4eMx1l+CLISRCpAD1Bw5XmI9RxvmBHn2VpGlUwWQ== 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:(13230028)(396003)(376002)(39860400002)(346002)(136003)(366004)(451199021)(31686004)(36916002)(6916009)(66556008)(66946007)(66476007)(6486002)(316002)(4326008)(36756003)(478600001)(6512007)(53546011)(6666004)(6506007)(2616005)(26005)(186003)(41300700001)(83380400001)(5660300002)(8676002)(86362001)(7416002)(2906002)(31696002)(8936002)(38100700002)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?WWhPZ1ZTbC9QcnY2YitYYmdpMndyd1hQSTRuTStTYngvMCtQeTVVakNhT01Z?= =?utf-8?B?aVpVWitobUVjUi83SWRLWkU4RmtXMTFpZWpzVmdwMGpDRVFLTVd2R3FSZTBV?= =?utf-8?B?VUVJZURZOGlwUDlJZ1M3L2tONVBIbTE5c3B1bnpEa2ZLZWtlUjkyVG12RUpF?= =?utf-8?B?WVluUFBWSU9DZFVoZGVGZkdBdFZ2aHpnTDlOeGhRaFc2a3RGYnc5bksyaVVy?= =?utf-8?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2L1NOckxmYUpvOWRIcnViQWliR2Q3Y2Vm?= =?utf-8?B?NVg1ZThrejRrMjk4ZVVqaHRQYzkvYWhvTG83YldhazlOdytZVVBCb3gvOEJh?= =?utf-8?B?OW41VkgzamV1bng2cEVlK3lPYjlnRUlEVW9Ub0JyTVY5T041dWUyMGR4VnQx?= =?utf-8?B?T2c9PQ==?= X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: =?utf-8?B?dGUwcTUyd3ZPeWFOUjYySzNJa2VzNU9VM09KdGFZVG5URFJvM3JBVjlBSVBE?= =?utf-8?B?SDR5MlpZeGVYaUF6SElvUk5KZWFubU5NcXVVUmZuSG5rZlBYaWpkS3dpRFR3?= =?utf-8?B?U0tyNXBWNnhkK0xxQy9XWm5PN0M4eTdsTkJMWldVNHFSY0MvU0pXRFJDMmZD?= =?utf-8?B?c2xXR3lYZEpzM09td1R4eGhEejlSYk5Lb2t6bmZZSlNxb1FJWGdvTGUxbzdk?= =?utf-8?B?VVBpK1YrUS9lTVJoZFhnR09US2hLeGpMQnk3Rm5uN0Zjck4zK0lJUmVGYi9k?= =?utf-8?B?RnNoNzJYcE44MVdxOVQ5d25MYzM1SmtreXhGdUszMkN5S1hyOHdQSmZscUdE?= =?utf-8?B?Q3dMV1BXOHJRSmVuVmMwYU9aNndhT09lVWZDY0htYlFlS3UvaE13MzNRbGR2?= =?utf-8?B?dmEvSnJhREJ1bzdicDM4eFJ4RVlwMjlYOU01L2Q5ZDg2UjdzaGU5eHppREY5?= =?utf-8?B?N3kvQmZ5Ky9HditEYmpQRG5sck0vYVhPZTRmRmwxcStyOW9OWGpkZGVrcURZ?= =?utf-8?B?cWZjVjE1RzltMVhzOHpXRzdZeEEvL3J4dWozS2FiS2cyNHhOWklGUG5HREpV?= =?utf-8?B?SlJJaGRlTmhyNFZUakoralBmZTFMOHUrTWNqMmduRlVKRVFkYWptNlBoZUp4?= =?utf-8?B?Rm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exchange-CrossTenant-Network-Message-Id: e7e97a17-e201-479d-613d-08db56f87b20 X-MS-Exchange-CrossTenant-AuthSource: DM6PR10MB4313.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 May 2023 17:02:22.3953 (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: SPmtLtDMZ30ri+vJzWnCdba3MQTn55QuK2rS6YX0rptQ8OvTsXdZNi6TDWY+/U6aAPqt7/+dbJ6sg9pKZRzZWg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR10MB7486 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-05-17_02,2023-05-17_02,2023-02-09_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxscore=0 phishscore=0 spamscore=0 bulkscore=0 suspectscore=0 mlxlogscore=999 adultscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2304280000 definitions=main-2305170139 X-Proofpoint-GUID: yF1CEABBuUjnmwifmjd4Gpyk5cxBqfTZ X-Proofpoint-ORIG-GUID: yF1CEABBuUjnmwifmjd4Gpyk5cxBqfTZ X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/05/2023 01:19, Mike Snitzer wrote: > On Wed, May 3, 2023 at 2:40 PM John Garry wrote: >> >> From: Himanshu Madhani >> >> Add the following limits: >> - atomic_write_boundary >> - atomic_write_max_bytes >> - atomic_write_unit_max >> - atomic_write_unit_min >> >> Signed-off-by: Himanshu Madhani >> Signed-off-by: John Garry >> --- >> Documentation/ABI/stable/sysfs-block | 42 +++++++++++++++++++++ >> block/blk-settings.c | 56 ++++++++++++++++++++++++++++ >> block/blk-sysfs.c | 33 ++++++++++++++++ >> include/linux/blkdev.h | 23 ++++++++++++ >> 4 files changed, 154 insertions(+) >> > > ... > >> diff --git a/block/blk-settings.c b/block/blk-settings.c >> index 896b4654ab00..e21731715a12 100644 >> --- a/block/blk-settings.c >> +++ b/block/blk-settings.c >> @@ -59,6 +59,9 @@ void blk_set_default_limits(struct queue_limits *lim) >> lim->zoned = BLK_ZONED_NONE; >> lim->zone_write_granularity = 0; >> lim->dma_alignment = 511; >> + lim->atomic_write_unit_min = lim->atomic_write_unit_max = 1; >> + lim->atomic_write_max_bytes = 512; >> + lim->atomic_write_boundary = 0; >> } > > Not seeing required changes to blk_set_stacking_limits() nor blk_stack_limits(). > > Sorry to remind you of DM and MD limits stacking requirements. ;) > Hi Mike, Sorry for the slow response. The idea is that initially we would not be adding stacked device support, so we can leave atomic defaults as min unit we always consider atomic, i.e. logical block size/fixed 512B sector size. Thanks, John