Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3049051pxk; Mon, 7 Sep 2020 01:23:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxOBXzc2YwYvKbM1oedU5OeERsfIa8Kn5pN/5JR9oR4u8dopSzC6UhN1H4tKPZkJelBJNnQ X-Received: by 2002:aa7:d6ce:: with SMTP id x14mr20996104edr.359.1599467007429; Mon, 07 Sep 2020 01:23:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1599467007; cv=pass; d=google.com; s=arc-20160816; b=WUPYNHtWwAVXlTwkrkHNo4ZCQH8okW7SmViC/vm9cjgF4+lJHA267j7QWZqJbHdltI uxijj1q7wRmICDwXBq2Crz2s1mcJ17wy6dZ7uLUzeRczTxmfjoOU9jiA/QDCXKMN2wVk PYLrb7D0T9ugFSvynOkQiM6to0QCLLnLVSQQXNQKZPXxAQeAROVqw7CklI+t+d38rOYK czWoRCBiA+VNrLXG0B9JC1XBJPu7cwF8yIaFWpCNDczFACl9bUBfvE1WbJbHRcYY3bI1 Ckzk+VGNa0d7tl7BSQUdlJoJBYvhxdL8oYrFRPSkeMk3weye0SrhxE6WjLd77gGdNefL pXaA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :wdcipoutbound:content-language:accept-language:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature:ironport-sdr:dkim-signature; bh=KF+76oE0BXMlvu+NlKuicfRFSQRPlUn13isTCPzIJuY=; b=CF6puMuCvgOPayKcU6jXDtbbKl0fEUKghM+8u6UfLFL/BzSfwaED/idiYi5qcMHToc /NgxOVMo7rAWZY0a4IusfD7/Zth5OCxmf1BN9uRi1vLIVnk+HKGwU3mFJ/Kc+1jv0PfZ V5EZdWElXjNcGFqgB/woKCDifdlfncZ2b06nkr11VBj3zmAwIBE1MgsHNo3drHEcAiyM 2dGuFsBx3Rq8B0YEfCOPq7lM9XbUYj6YYua4BY15bRWlY5pd/JIr3iCVwqa8ND22vGKR NJlPdQ37mTbQZDDYmrfNzWFASeP9kxXKW5PKJTSfbTps/aq5SpLCK4NiffFrZwE1lo0v FofA== ARC-Authentication-Results: i=2; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=AVDiEzWU; dkim=pass header.i=@sharedspace.onmicrosoft.com header.s=selector2-sharedspace-onmicrosoft-com header.b=CSMiCPpp; arc=pass (i=1 spf=pass spfdomain=wdc.com dkim=pass dkdomain=wdc.com dmarc=pass fromdomain=wdc.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=wdc.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n17si4177526eje.585.2020.09.07.01.23.05; Mon, 07 Sep 2020 01:23:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=AVDiEzWU; dkim=pass header.i=@sharedspace.onmicrosoft.com header.s=selector2-sharedspace-onmicrosoft-com header.b=CSMiCPpp; arc=pass (i=1 spf=pass spfdomain=wdc.com dkim=pass dkdomain=wdc.com dmarc=pass fromdomain=wdc.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=wdc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728056AbgIGIWY (ORCPT + 99 others); Mon, 7 Sep 2020 04:22:24 -0400 Received: from esa6.hgst.iphmx.com ([216.71.154.45]:48235 "EHLO esa6.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726997AbgIGIWR (ORCPT ); Mon, 7 Sep 2020 04:22:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1599466936; x=1631002936; h=from:to:cc:subject:date:message-id:references: content-transfer-encoding:mime-version; bh=KF+76oE0BXMlvu+NlKuicfRFSQRPlUn13isTCPzIJuY=; b=AVDiEzWUIPEx6okE2ZcJ9H0xqcSQOuJFFryqOb3GS/bwOf3nBvOtlBMw ZormHqhmdnex4rhG8g/KVbXu7tnl7gK0rIwW9cAn1//qydk5h5LutdXVY 7IxdNM3g4zYlbEddkfQ73sO0/CR5FGWocIbjiRDvFLvlJdpR3m4rm8Yzl IVTLqazGZ6OI8BvAFehCMR7o392Hnae70meiQKt2U8fgX9aonyJfz//HJ cnT7wlAEQiYGlbb/PVn+sJDfn2qWDpQk02/y061GJ4A4iQ/Wu5l6KuABH 6L1EKqbyKBkSR+Wwiz+G6BeUE7+eYY6lfqmwJ0aS2E1wTFu6sS3NVPZWP w==; IronPort-SDR: zEPeSi3ORBoaH8TP8eDeWs1O0z/CkADapZSKD368kvjKjD199l3R/w0Sdnin62x9p2LTd4utJe PJ6lCOuMlTuifW7GEaNdER2MDBOab6VCL/pqzOKSQgO44NU30/OIah6xY0DZ+b8+Cu7lUk+EIa PkhJLGj9r1b3T4KYCStwMO4PJVrtmrwmEk8B7QFNydhD7/c+wZ4TWajQSB+7B6Mfc9faPBjga8 PUu3Y/AQTC9/Rpggbi5CIV7WoM97lfRGeFJnfNlOTo2jrvtTm0HV3/QKREm50TwmW1H2XH/oCk qCw= X-IronPort-AV: E=Sophos;i="5.76,401,1592841600"; d="scan'208";a="147948021" Received: from mail-cys01nam02lp2055.outbound.protection.outlook.com (HELO NAM02-CY1-obe.outbound.protection.outlook.com) ([104.47.37.55]) by ob1.hgst.iphmx.com with ESMTP; 07 Sep 2020 16:22:15 +0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hj1PZD2LBp/M7Jhb798pKNFR0t2H2Olsg544sN4qDSIadOh3K6MvXzEVOcfzQpzBf8ESMsjEpp7fyE2D+4TvSceufgXB9ACEAREww7wLINTsoiKuva5BPUh320wNfNUiaz60pNjD48gU3Qv6V+pqEoL84+hvu3prKim/cu7h5AhoRdxTNHERdxBViFjP1nhBxV0i5K+wmzVVYrIN/OGnIUNsDDxQap/8ovB8+lBJS20FFkD3ye0Fc1WqRgOyY75+XY7oSGjRl1GzglOCJNWRZSUee00CS0a09xJ9jGXKQs3vJ04LpCOm3SN5bU2d86t+C3bYlFfJKxqsdJyy4A41xg== 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-SenderADCheck; bh=KF+76oE0BXMlvu+NlKuicfRFSQRPlUn13isTCPzIJuY=; b=dozkJG0rZC2hcyNiRL+bVGfofk7JOsOmDKRoNVGKqKv+9+gySBm3TdqISGMDqXwSFR8CFnCAparO3pZmzBJrHOEO8iAaxRdH0FYFI2/oOA1N18qQ7gkqRoxhJa5WmHrjmam/Rz3POwT5nRV+OtrRkfsFLPMCZjWulaBNsPo2814J+lgdUohN/o6rrFdX8I7dJjCqhoxETBWU7NDK/Q2d4XqBrU8vVLh34uZFO/64cQSWAJ++hfrru+uIA7vECio0cylsMy+QzQiocJSvoftCR8WJhwhhL2HNfRIMGysM3nHMHhlsvM9G6jAfSwtcxRjfJkq4yp1kJ2UpvDEfdi1LjQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=wdc.com; dmarc=pass action=none header.from=wdc.com; dkim=pass header.d=wdc.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sharedspace.onmicrosoft.com; s=selector2-sharedspace-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=KF+76oE0BXMlvu+NlKuicfRFSQRPlUn13isTCPzIJuY=; b=CSMiCPpp70cljJmcGTIVXEukCNXsLH6dsGbOsW6yYlVN7D0EQTjHDHO4dhnjhoTynpHgblLa5Pgv5Kz/MXh9dO5CtYtD09HfqxtrjI5+IIlyUWp4MgoPMN0fSt++0DyaJ0GksRJRTsy1PMTeQMB4N7RTdBtcgmDQWiF6NsgdMg4= Received: from CY4PR04MB3751.namprd04.prod.outlook.com (2603:10b6:903:ec::14) by CY4PR04MB3752.namprd04.prod.outlook.com (2603:10b6:903:e5::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3348.15; Mon, 7 Sep 2020 08:22:13 +0000 Received: from CY4PR04MB3751.namprd04.prod.outlook.com ([fe80::9124:2453:fe9c:9a7]) by CY4PR04MB3751.namprd04.prod.outlook.com ([fe80::9124:2453:fe9c:9a7%12]) with mapi id 15.20.3348.019; Mon, 7 Sep 2020 08:22:13 +0000 From: Damien Le Moal To: Kanchan Joshi CC: Christoph Hellwig , Kanchan Joshi , Jens Axboe , "sagi@grimberg.me" , Johannes Thumshirn , "linux-kernel@vger.kernel.org" , "linux-nvme@lists.infradead.org" , Keith Busch , Selvakumar S , Javier Gonzalez , Nitesh Shetty Subject: Re: [PATCH 1/2] nvme: set io-scheduler requirement for ZNS Thread-Topic: [PATCH 1/2] nvme: set io-scheduler requirement for ZNS Thread-Index: AQHWdSEIMmCxi6h3l0CfpdyAr+vLMA== Date: Mon, 7 Sep 2020 08:22:13 +0000 Message-ID: References: <20200818052936.10995-1-joshi.k@samsung.com> <20200818052936.10995-2-joshi.k@samsung.com> <20200818071141.GA2544@lst.de> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=none action=none header.from=wdc.com; x-originating-ip: [2400:2411:43c0:6000:2cd0:86fe:82f2:c566] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: fe9018ae-b6c1-4035-5d80-08d853071fe5 x-ms-traffictypediagnostic: CY4PR04MB3752: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: wdcipoutbound: EOP-TRUE x-ms-oob-tlc-oobclassifiers: OLM:9508; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 8Ophps+gFwyiGj/E//u/Qk+6vYT3SfN7Z52+OaFKuJf0fNza80fwMiaqaPOKnshTJoNTfHtBh/fO69UeLPdaeSQV/94MvwXYs/04WONLn7rCkYPmOoQvOvyLzYlnZc/sIikWuAeBUwwwZNJZdQaViXhQ+aoJSWVTtBrIJFe6KDycemhyDv0DOyEbFIoMVQRSpZaQZnNQTr3fq2MoNilvvPpQJRJCOJM8/sqe0gCygN2abB+c48lZ4cZPUBUAJmP2Rr232ue6ssUvWQtwnnul45H9aCmPPAwgwqVBAvpFa7o/tVFn2w68uWmgIH9YO8aPKGuYaGPQawDIeJoUMsP1aQ== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CY4PR04MB3751.namprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(376002)(39860400002)(366004)(346002)(136003)(396003)(478600001)(8676002)(66476007)(66556008)(76116006)(66946007)(2906002)(64756008)(186003)(66446008)(55016002)(52536014)(316002)(71200400001)(54906003)(4326008)(7416002)(8936002)(9686003)(7696005)(33656002)(53546011)(91956017)(83380400001)(6506007)(5660300002)(86362001)(6916009);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata: NhLtQNRuxJD21pZm2c50704z5LVBxiKj2/3vvc3w2aX1/pKWoR7K0udB/sk/MFIz6qhc6FK/VxgT6n0hhPJdBomG1pH9aauSxYIubIdjiKZaXXSLqfd6BvNa5ZrHh+T7J959e4DmSKkgDRLWLMNz9vVK4rTU97lsI1AYuX4f9qLUZ5tlBToYBFt+S5L0AkA6wDRrrQ40Rx31uRYKxe/vVgIknTiMZ3J0A6rup8LDq88m7ItNKsLkLUmIZ6GJzFTMJSOLp1cKObOxpTVuy+M+aLp4r/PmvZxXR3XcnaiVUSadjeZObkH7fw5omtN4pi+yY/j2fAS7D4SSAgHINWCSpE6z7jjvaLMPSVllRjL4+rdAEUAfW7ENXQDvspI6lBxeT2u88ER0GGQhnTOz6b47XQY6E+X1PTHhE+XchcpvGPLB/2u8bVE4KiSoBU/Bb+NpB+aVvNKJg2lIN/ZqrU5lxD6qfluEtBNdYE3hMbfIRB0KTNqOvkIvQuIW17EY5cTDLH3rdGfc9mzxhe3ROF7aRCv52UNyg7vJYG3hGut8AxtDv7JvbZUu83BY6yP4iVaavxUAQ2dZ9FZM/8qXXkdMbNMKIleIw6Sxq7hEGwFVmGBMvL1tRpxb/agmjPL9NnFdKLBMAThhqtm6RSO6ObX8X92/xau9TaGgY0o1XZ86mIe2eKLbe5RyZAvr99jdp8bdvYDZZMqbmNje/2luacn0kA== Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: wdc.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CY4PR04MB3751.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: fe9018ae-b6c1-4035-5d80-08d853071fe5 X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Sep 2020 08:22:13.6052 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: b61c8803-16f3-4c35-9b17-6f65f441df86 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: i9XckTy+wrPV+C/3LY47OwWjWNI/t6qiSsUTZyYLxI22PI3WLxk0s8AhpLxTjtq66decI5gax600z4k6lVALfw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR04MB3752 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020/09/07 16:01, Kanchan Joshi wrote:=0A= >> Even for SMR, the user is free to set the elevator to none, which disabl= es zone=0A= >> write locking. Issuing writes correctly then becomes the responsibility = of the=0A= >> application. This can be useful for settings that for instance use NCQ I= /O=0A= >> priorities, which give better results when "none" is used.=0A= > =0A= > Was it not a problem that even if the application is sending writes=0A= > correctly, scheduler may not preserve the order.=0A= > And even when none is being used, re-queue can happen which may lead=0A= > to different ordering.=0A= =0A= "Issuing writes correctly" means doing small writes, one per zone at most. = In=0A= that case, it does not matter if the block layer reorders writes. Per zone,= they=0A= will still be sequential.=0A= =0A= >> As far as I know, zoned drives are always used in tightly controlled=0A= >> environments. Problems like "does not know what other applications would= be=0A= >> doing" are non-existent. Setting up the drive correctly for the use case= at hand=0A= >> is a sysadmin/server setup problem, based on *the* application (singular= )=0A= >> requirements.=0A= > =0A= > Fine.=0A= > But what about the null-block-zone which sets MQ-deadline but does not=0A= > actually use write-lock to avoid race among multiple appends on a=0A= > zone.=0A= > Does that deserve a fix?=0A= =0A= In nullblk, commands are executed under a spinlock. So there is no concurre= ncy=0A= problem. The spinlock serializes the execution of all commands. null_blk zo= ne=0A= append emulation thus does not need to take the scheduler level zone write = lock=0A= like scsi does.=0A= =0A= =0A= =0A= -- =0A= Damien Le Moal=0A= Western Digital Research=0A=