Received: by 2002:a05:7412:8d09:b0:fa:4c10:6cad with SMTP id bj9csp387248rdb; Tue, 16 Jan 2024 03:37:41 -0800 (PST) X-Google-Smtp-Source: AGHT+IFd9sSZUvOnLK8BT6+9JukZ/sThDXwOmxoQSmNFvzflnnYOkXWR/W2INlfmcDCpYBoG2LQ8 X-Received: by 2002:a05:6870:c09:b0:1fb:75a:77a3 with SMTP id le9-20020a0568700c0900b001fb075a77a3mr8517992oab.84.1705405060871; Tue, 16 Jan 2024 03:37:40 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705405060; cv=pass; d=google.com; s=arc-20160816; b=KCbMkN7O6U2q+MssBNBPkOu4CyjUOSax9+afSb3P4VnTI7xo/QeFGfgz8aGFxEKD6a PMZrpq8/FrVvUN3PiABNVLOWVEz/N/2p7zya9SpOPuU9XJAVW99JiaSERwOWxqn1uOKZ kU8NIOa29FsBDrJFSKh3YNxDBAHw4dVvDVtNro2yJe5YcIIurhVLikeLlfrUAWqYDZVQ /VR/OGrrImBE+Rk8l2XoJAyYbuMzcZERKVa8Sa7u8ZoPVzKYkasCVITJm+E5olQp3gPl SCXBkd/5c6m0qwB+KOIEBu9vljxBDDM1AmDcGMntVtE/Pbczk030Acp+0ShMBucMsibA pDGg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :content-transfer-encoding:in-reply-to:organization:from:references :cc:to:content-language:subject:user-agent:date:message-id :dkim-signature:dkim-signature; bh=a6L1huJju7kKuWvpfdhmNYBtYJqO64C5OQUqW/tWZnc=; fh=F2AibOSczCMrz3nxbJb1d45urHe9YPsOWoRkXNXLIfI=; b=Vd9q7gcQebC+RAx0E5Ntjn9YRGhGC/9Nxf0xSmZcMKR8LQAnovN/EBRiTQXv33dUoh zk+kKh60mOhhVkWB+8YMedMHacDApAV9uIDcxl4igVfjF8DYY+vD48KoamZ5GOUwLZow c1S2FWIY0ynYGuFtwFZOYGXfI4Y34UCpqSjSP/ZHxoNiekDaa0DHadXMy2R8TM+evNvU 8zDNIKcSNtecM6ftPOKXRIIU6hSUTj7fdOMErxXrfJphsdPNRUiUyAIJrcN/lmPRZCs9 CesOiFnnRZN7AXEIW6Xsx6PilZfDgltV3ZaEkO8NWaS+QsIUaEPMSnlF8xxjxbnpVQGZ lq+g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-11-20 header.b=Y9bNiVGU; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=mVB0+RAy; 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+bounces-27327-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-27327-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id y63-20020a638a42000000b005cdec41efddsi10823381pgd.150.2024.01.16.03.37.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jan 2024 03:37:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-27327-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-11-20 header.b=Y9bNiVGU; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=mVB0+RAy; 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+bounces-27327-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-27327-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 7F482281BE8 for ; Tue, 16 Jan 2024 11:37:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 569491B957; Tue, 16 Jan 2024 11:37:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b="Y9bNiVGU"; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b="mVB0+RAy" Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 535E71B806; Tue, 16 Jan 2024 11:37:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oracle.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oracle.com 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 40G6i4V6015483; Tue, 16 Jan 2024 11:35:56 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=a6L1huJju7kKuWvpfdhmNYBtYJqO64C5OQUqW/tWZnc=; b=Y9bNiVGUeyVdsbJg3wqQ8qVyPR4+B2J0L3RZ1zxaS1PFxb61KIXVWTb1HNyKbhUIZx1I NeNv5PHCHdt42LOmkTd2cUp9BJUULH215ZA+Hk1aOuj7EPlZ/EcOw3ON+UUae5xuGR+t Z/z8mx5itVFtVj61S+9reQtmREOa7KPBIapm4hGaeayLZ/ZtiCxpCmDjJA+4vxpeRa3M Bqmqo84fmdrge+xSUfI3vtctb0joYfLS/INQONB4yhhR7EhgRT/VTMTelj6IXicrn1OF ToWqTgl3fTV2cJKnsktt7k1IPUrLIi6dZ799uwqt68qMbhPLqdGjNJ5bKrXyPYqCh4yV dA== Received: from iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta02.appoci.oracle.com [147.154.18.20]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3vkha3cnjs-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 16 Jan 2024 11:35:56 +0000 Received: from pps.filterd (iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 40GArNf0005328; Tue, 16 Jan 2024 11:35:55 GMT Received: from nam11-co1-obe.outbound.protection.outlook.com (mail-co1nam11lp2168.outbound.protection.outlook.com [104.47.56.168]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3vkgydtm5g-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 16 Jan 2024 11:35:55 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ma1GQZTUT8GYwoZw5NgeM9H8w7dqeyhu6ym7VpBpJ9Pye7aGtgTmJrgyKt6w9oBEx4yTiEOwSp9s6Co5VyYlWgObcnpL7jXuph8Ubg0LIXAmYYfK5Tur731qeTU9R+gjrVyRbqpqf8D4LxrAeaFuQzxlLq2et67tbWdGaX9lW1fBOHaW/GDC7jhJDH6Fp8dsvHzvKIYYs7J+JpxXn8HQdby/Zt4VMzf6Uv36ljl2Tk78u1BOF0n49lQYJAno5o6W8eF1D8YoEBE3Kv/aKfm4lllNKZj9fuCiUZY3HpvuKvHFruZ/9LU1V7I8zNwfyAR817SWl/o+l1sZkF6VfqM6dA== 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=a6L1huJju7kKuWvpfdhmNYBtYJqO64C5OQUqW/tWZnc=; b=c9xRS9UbSilB87Vz78Lpm27qSl3BHlL7rlANA2BfiT7Z0ZIir8eXeYhWyuqjVl4P/2XYRXztqO9q5PXJPjXAZHuGRGKfN2GkMbeWvXuc4ECidsaPYI8fTJ+TxA/E0id2V8yB8oOi2KrJtEBN24DK5ZJe+BPmq1cKWwcsfdRaOrglA0dbQQ8Ae2u+PWlIcBHBlFCXVJvnbGDcyRWJJAb2yXbuypcsgSiRqV+nKTm1G3XgjikXRAlDSWY17C6V1znjtxyvqABPUsiDr/M/Fh++MPtf4n9a+wUYPFla1WpNRXkOslyk3IKN0uk8BKPGBIxk7fYKzTefhX7YboNaBNFxEg== 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=a6L1huJju7kKuWvpfdhmNYBtYJqO64C5OQUqW/tWZnc=; b=mVB0+RAyuesJnigpJYkCk91xFd1ksxgerw5zm2F1wKQeEXcWRKDfEQpgqxvlymjuq7p+pz54QhWmOd6RdQM5846QzfpTsz2DQEewiZ9yEwnlCpdltbxsY08a+hXTECWVHja4hwagE8IewYZjhcBVPvBarxfZx5LefXPPo+d1StU= Received: from DM6PR10MB4313.namprd10.prod.outlook.com (2603:10b6:5:212::20) by CH2PR10MB4215.namprd10.prod.outlook.com (2603:10b6:610:7e::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7181.23; Tue, 16 Jan 2024 11:35:53 +0000 Received: from DM6PR10MB4313.namprd10.prod.outlook.com ([fe80::5d80:6614:f988:172a]) by DM6PR10MB4313.namprd10.prod.outlook.com ([fe80::5d80:6614:f988:172a%4]) with mapi id 15.20.7181.022; Tue, 16 Jan 2024 11:35:52 +0000 Message-ID: <6135eab3-50ce-4669-a692-b4221773bb20@oracle.com> Date: Tue, 16 Jan 2024 11:35:47 +0000 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 00/16] block atomic writes Content-Language: en-US To: Christoph Hellwig Cc: "Darrick J. Wong" , axboe@kernel.dk, kbusch@kernel.org, sagi@grimberg.me, jejb@linux.ibm.com, martin.petersen@oracle.com, 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, ming.lei@redhat.com, jaswin@linux.ibm.com, bvanassche@acm.org References: <20231219052121.GA338@lst.de> <76c85021-dd9e-49e3-80e3-25a17c7ca455@oracle.com> <20231219151759.GA4468@lst.de> <20231221065031.GA25778@lst.de> <20231221121925.GB17956@lst.de> <20231221125713.GA24013@lst.de> <9bee0c1c-e657-4201-beb2-f8163bc945c6@oracle.com> <20231221132236.GB26817@lst.de> From: John Garry Organization: Oracle Corporation In-Reply-To: <20231221132236.GB26817@lst.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: LO4P123CA0481.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:1a8::18) To DM6PR10MB4313.namprd10.prod.outlook.com (2603:10b6:5:212::20) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6PR10MB4313:EE_|CH2PR10MB4215:EE_ X-MS-Office365-Filtering-Correlation-Id: 696bf6d0-0bce-4f3b-17fa-08dc16874bb6 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: OBSBrgFjkPYnJ8kbF2kK0B1wJJxmkr+bhj0wuR2KQYjyVHnXe3qtT5ZcqgyhSnrPx3EHfx4U+l+OYCp5nW8lo9ZMuY4hfUep0D+9lO2mwS3P3rS+hjUprDeewZAOGPMxghoTHttMHvjuJeJWGGj/5GDeuEMGSp/AcNEyhX5NZQ8DUt4N9VAk1y8NLmwNi5JalXuZ9ZJW7ZZcCBQ+AvM5FJKV+dsEyIiubmkAJ0LdbaoIbc0ziAj0l82UqRJ/n1SqoYUxSHDoIT9zMewvN7BIRX2x/OM1u/Pn1U2bhlHYHL/qytjE7LkRPHiUVU1cL/S3a0PMsxqKohRP8NsSMH1UgKmbb6nCL6S5QWRdtN6ENlNs4t9gDRrZN57+MjvJG6S29jaOj/s5aE8Dd/CLNWduDOKVGcBHoBnzMh5duUr9UiJpKVvyzpJHbP4MlkpaJk5cmWFgeY9V9KCZDzUAbdmMpDJLnd1bCFl5iEOMkZ3MP0+kvpOh2G4GP2ouL1Xp+BmhAS3vz44o9V6WE/YfZ7DBky7/9c3blammcvhgYjlreDvofV0rsZhpTZaq67i+PKg4tGYStKF5VSxNl77HIwyH8yPZcKQhAIhsZ/MjJnEf6iYYTzIFIamxWUwz92ny19d2pSS2Sl5Df9ISYLsliTGQpw== 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)(396003)(376002)(346002)(39860400002)(136003)(366004)(230922051799003)(64100799003)(186009)(451199024)(1800799012)(41300700001)(31696002)(36756003)(86362001)(2906002)(38100700002)(36916002)(53546011)(6506007)(66946007)(6916009)(8676002)(316002)(8936002)(6666004)(6486002)(6512007)(66476007)(66556008)(7416002)(478600001)(83380400001)(5660300002)(4326008)(2616005)(26005)(31686004)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?ZTY3RVFwbzNuazllZVR4NCtlTDBFZHlPcTNPcmZ6a1V1eDZUNjVHdmw0a0x2?= =?utf-8?B?YkxFdStOWjlaeFVDSFJXdi9YQ2QrSGZEbXpSY2NPbldnQURxQWRRVHRZTjZo?= =?utf-8?B?MFpOK01TMndhaGhENUpWZnIweTVPOGlFdU5oSXRUS2E0YWdlbzFKUE1DbDNh?= =?utf-8?B?RW93c3E5SktjTFc0STdjTU5GakRpd2JLK0h2d2V6d0FvYzdKVXU3MjN0RDho?= =?utf-8?B?TlpmUzltTXo2TU5GTUFSeTY5SGVvd3Q2eDlTZE1BRllSS1laek1yOWxhZEdy?= =?utf-8?B?SDV1MHRtR09JWGtpWEZybEc1azZ4SEdEd2c4amNHVFRHdjdtanc2UDdEVjJO?= =?utf-8?B?eTFzbzR5ZGp4U0N0THNIdTQ5YXBaOS90dEtuWUt1clJQalFydVFOR2FDcTBs?= =?utf-8?B?RnRwVHMrNm1DZGxMR2phNTBibUFKSFFqT3RxUlNTbDA0VnpMUk1id1Yzc1d6?= =?utf-8?B?N3Q1ZWhRZVd6eFJQTGozNWRPWm5vT0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DEEkyjnWsWievVhzck7NrE86xIwy70ouG//3yAClnnzHk3bUUwxSN384nLaIdTafTCNfbLJPHZkjXNxwWbrRV9IW+yRZKAU3/SxBkzjJVFA8WYN4AQnIRSiZCIYMb0HF4JvEQkPi5qZzl3BESqADfN/G5PjUokF7SSzjT7zhrHzkQysGxQwQvGHOF+iBFEKofV60lsTjhEhhactlZrk36jyecAU9K/UMmNQOvTr7SYaSSDd7vIKWWEFq1vKRuhQgXgauBThU184KEtUSDUd+xXyuVyx+rE+w5I8T7uVVl7s+Ks34Sc2VPWIm6pBFiM+NyUcyobrBZZHY0vVxteri6d87Xxh+NNWAmytVaVTnyocX9dTrD7Po5UmXgmE77IMPzeJxrgOPBTdvSHddMcsKSjq2/FP1p3cd94lq9BCBaIIpz/yGIGXpKLxf1I1AG6l4TH0KXGk0rhzpHsrWTxpYBK3bEmWAJ5/00iQiUrlXw2VCH+eEeYsGquHO43KSzTMqg9SCfxAPKnhgenloTCdbB6IDro9m/0Hdc/F8YIIvPApYEb/vi6s= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 696bf6d0-0bce-4f3b-17fa-08dc16874bb6 X-MS-Exchange-CrossTenant-AuthSource: DM6PR10MB4313.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jan 2024 11:35:52.8925 (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: wrBH/KELxJT55aqJnpACP+7i2KwLEqOiGJ1KHpd9iBs2L8W4Kr8WyX8Iep2APO7kki5E9hlGQYTLOaLtJBCHwA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR10MB4215 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=2024-01-16_06,2024-01-16_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 adultscore=0 phishscore=0 suspectscore=0 malwarescore=0 spamscore=0 mlxlogscore=999 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311290000 definitions=main-2401160092 X-Proofpoint-GUID: dzVr8JCeIb6nShxQxK1GFdRmtRdNh6Au X-Proofpoint-ORIG-GUID: dzVr8JCeIb6nShxQxK1GFdRmtRdNh6Au On 21/12/2023 13:22, Christoph Hellwig wrote: > On Thu, Dec 21, 2023 at 01:18:33PM +0000, John Garry wrote: >>> For SGL-capable devices that would be >>> BIO_MAX_VECS, otherwise 1. >> ok, but we would need to advertise that or whatever segment limit. A statx >> field just for that seems a bit inefficient in terms of space. > I'd rather not hard code BIO_MAX_VECS in the ABI, which suggest we > want to export is as a field. Network file systems also might have > their own limits for one reason or another. Hi Christoph, I have been looking at this issue again and I am not sure if telling the user the max number of segments allowed is the best option. I’m worried that resultant atomic write unit max will be too small. The background again is that we want to tell the user what the maximum atomic write unit size is, such that we can always guarantee to fit the write in a single bio. And there would be no iovec length or alignment rules. The max segments value advertised would be min(queue max segments, BIO_MAX_VECS), so it would be 256 when the request queue is not limiting. The worst case scenario for iovec layout (most inefficient) which the user could provide would be like .iov_base = 0x...0E00 and .iov_length = 0x400, which would mean that we would have 2x pages and 2x DMA sg elems required for each 1024B-length iovec. I am assuming that we will still use the direct IO rule of LBS length and alignment. As such, we then need to set atomic write unit max = min(queue max segments, BIO_MAX_VECS) * LBS. That would mean atomic write unit max 256 * 512 = 128K (for 512B LBS). For a DMA controller of max segments 64, for example, then we would have 32K. These seem too low. Alternative I'm thinking that we should just limit to 1x iovec always, and then atomic write unit max = (min(queue max segments, BIO_MAX_VECS) - 1) * PAGE_SIZE [ignoring first/last iovec contents]. It also makes support for non-enterprise NVMe drives more straightforward. If someone wants, they can introduce support for multi-iovec later, but it would prob require some more iovec length/alignment rules. Please let me know your thoughts. Thanks, John