Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2847706pxa; Mon, 17 Aug 2020 22:34:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzCAckfVKtYNVFUxV4xdWCMD598dY5LuadIBgWCfro1EUobHqCLlpIOlbNwYMLriiwyjBSX X-Received: by 2002:a17:906:bcc4:: with SMTP id lw4mr17716342ejb.361.1597728897536; Mon, 17 Aug 2020 22:34:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597728897; cv=none; d=google.com; s=arc-20160816; b=say0ed6CU7lbkCCC5RvJh/LqosIvEBCmrzMKLT+Xq8X3A1TTpSBMjux4Hpd9fCoeL9 2kUAu/BSsKdqidTA/TC+tcDPYzI9zCcd3Nsk/eMFm0sbSu0GRcA9dFagfp4jGYhdii2P 4h0HyLuQAOHwKlYdgLDi/EpcQCX+S8SJOOrZ25JmpQuq4Cs2zNTTZbVhzAVH8upZImVJ 83B9qi9F3JyTO2g/WcW56i+eAAdxNvJM6+JmwfilGFSovWnjIcTTzbqN7dRZm/ZN3ucf 98z+cjC4djxhHt1PKw3ChVnZh44jbZ5cKqVLZ0oDbV72NZDsN7Kzf3R+8bUwJmQhzYxN f3ZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature:dkim-filter; bh=jEOVmDYbulTLaXPLZDY41EjVVS5v/5kzsUbXyDk+3EY=; b=BsFQaadI6n5bjezi7JvWUkirAyTyqwRN9Fvyc8y3S2xMvPD+yOjPkgDM6agpAt7gLN 7tRH4h6q7dCxS6Am/CSC/ieSAjeJ5/IroiyJITnyz/mCuF6ABi6PAPfUBe+2XMz3Zbls qUp41R6dRGJLjsqNifxR0k6MwvgDw2CkcZMqNRXczOGsgtO2Zr7MVdNg5+pxNAri+ebW K3QGEsGy2/u2e7Ld0+YWL9ojC7HPANhUXeM6KbdKgX8cGJh5ZfgTFFPfk6wpQdsNowHF Cn1UFXqDDFj2iv+7JQ8yA9ioB58L33x5aM8jNB8hGVigfVnXmDurjzUHUnDVq4r/Bj25 a4kA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b="PV6/eopN"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d10si11994732edq.275.2020.08.17.22.34.33; Mon, 17 Aug 2020 22:34:57 -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=pass header.i=@samsung.com header.s=mail20170921 header.b="PV6/eopN"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726681AbgHRFc7 (ORCPT + 99 others); Tue, 18 Aug 2020 01:32:59 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:54295 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726343AbgHRFc5 (ORCPT ); Tue, 18 Aug 2020 01:32:57 -0400 Received: from epcas5p3.samsung.com (unknown [182.195.41.41]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20200818053253epoutp01cf346e2f421d299f065f4be7c067acb5~sRdrTPHCu1966819668epoutp01W for ; Tue, 18 Aug 2020 05:32:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20200818053253epoutp01cf346e2f421d299f065f4be7c067acb5~sRdrTPHCu1966819668epoutp01W DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1597728773; bh=jEOVmDYbulTLaXPLZDY41EjVVS5v/5kzsUbXyDk+3EY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PV6/eopNzjO/oPixGLKCHPpLvh9PpTKSA4ooEmq2MFuI9rnenaTQbX2uPrgOMwBxS Fz+0TNVfybMKZc17yONV5eUyr51bna0Dx7/Zx1Ak9eYoUB9R168NoCIwJ6/hZRqank cjwFksIaRExvoalqsm+pKzFONrqFumeuF6a+ciAQ= Received: from epsmges5p2new.samsung.com (unknown [182.195.42.74]) by epcas5p3.samsung.com (KnoxPortal) with ESMTP id 20200818053252epcas5p30ea64bd4f545844e9fd9f236720889b1~sRdqN59zZ0717507175epcas5p3b; Tue, 18 Aug 2020 05:32:52 +0000 (GMT) Received: from epcas5p4.samsung.com ( [182.195.41.42]) by epsmges5p2new.samsung.com (Symantec Messaging Gateway) with SMTP id 72.29.40333.4086B3F5; Tue, 18 Aug 2020 14:32:52 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas5p4.samsung.com (KnoxPortal) with ESMTPA id 20200818053252epcas5p4ee61d64bba5f6a131105e40330984f5e~sRdp8vRm71618016180epcas5p4o; Tue, 18 Aug 2020 05:32:52 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20200818053252epsmtrp28b158913a76d808cb5b6e9f611e2ed1c~sRdp8B3r22801128011epsmtrp2Q; Tue, 18 Aug 2020 05:32:52 +0000 (GMT) X-AuditID: b6c32a4a-9a7ff70000019d8d-47-5f3b68049955 Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 73.DA.08382.4086B3F5; Tue, 18 Aug 2020 14:32:52 +0900 (KST) Received: from test-zns.sa.corp.samsungelectronics.net (unknown [107.110.206.5]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20200818053250epsmtip2394e526d06a97e4cd6e382dfb8a27fe8~sRdoTURNm1720417204epsmtip2Z; Tue, 18 Aug 2020 05:32:50 +0000 (GMT) From: Kanchan Joshi To: kbusch@kernel.org, hch@lst.de, Damien.LeMoal@wdc.com, axboe@kernel.dk, sagi@grimberg.me Cc: linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org, johannes.thumshirn@wdc.com, Kanchan Joshi Subject: [PATCH 1/2] nvme: set io-scheduler requirement for ZNS Date: Tue, 18 Aug 2020 10:59:35 +0530 Message-Id: <20200818052936.10995-2-joshi.k@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200818052936.10995-1-joshi.k@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrBIsWRmVeSWpSXmKPExsWy7bCmli5LhnW8watzuha/p09htVh9t5/N orX9G5PFytVHmSz+dt1jsjj6/y2bxaRD1xgtLu+aw2Yxf9lTdosrUxYxW6x7/Z7Fgdvj/L2N LB6Xz5Z6bFrVyeaxeUm9x+6bDWwefVtWMXp83iTn0X6gmymAI4rLJiU1J7MstUjfLoEro+vq b9aC96wVl9rnMzcwdrF2MXJySAiYSMy/eoQZxBYS2M0oMXseP4T9iVFi3Ve9LkYuIPsbo8Sa G1tZYBoubfnGDpHYyygxp+80lNPKJLF6zjO2LkYODjYBTYkLk0tBGkQEYiVmXOpmAalhFmhm lLhzZhnYamEBe4krt3YwgdSzCKhKzHjPBRLmFbCQWLh2BtR18hKrNxwAu45TwFLi68n/YHMk BH6ySxxtnMwGUeQicfTJTUYIW1ji1fEt7BC2lMTnd3uhaoolft05ygzR3MEocb1hJtQ79hIX 9/wFO4IZ6Oj1u/RBwswCfBK9v5+AhSUEeCU62oQgqhUl7k16CnWbuMTDGUugbA+J638/skDC oYdR4teVv0wTGGVnIUxdwMi4ilEytaA4Nz212LTAKC+1XK84Mbe4NC9dLzk/dxMjOHFo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1/OYrEDJLUa64XKl9r3L29xrOGCFdy6wijnkKqQ/a72Tx9vzf3SC1+Mbynt/7a8QN +5MNP7VlyV/mTX1o8E3/8BFnW7UH5/427LN9MmfSk7271LoX/z+We0pzQWNrmOPBQ9sEjm27 yxVp4BJ14r7zxisO/7fZ7nqfnuy2Y4e13v2/DZKJT681nLvZtvG9hHt1zb7qVXyZzJ4x5lIa G2PetZ6pbupdWGC55PEZ4aRkphmzb5d9ebNNMVgsdv6qTGmmxdH+zT4M99yXrOhXmlJWdCXo yR/B+rmNjt9e32mvaDy98vUZn0urBXmyBJNio4omzvXVXn467c72j2ZFc5J3bXqjxFKckWio xVxUnAgAhRvDSMkCAAA= X-CMS-MailID: 20200818053252epcas5p4ee61d64bba5f6a131105e40330984f5e X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" CMS-TYPE: 105P X-CMS-RootMailID: 20200818053252epcas5p4ee61d64bba5f6a131105e40330984f5e References: <20200818052936.10995-1-joshi.k@samsung.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Set elevator feature ELEVATOR_F_ZBD_SEQ_WRITE required for ZNS. Signed-off-by: Kanchan Joshi --- drivers/nvme/host/zns.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/nvme/host/zns.c b/drivers/nvme/host/zns.c index 57cfd78731fb..cabd870fb64e 100644 --- a/drivers/nvme/host/zns.c +++ b/drivers/nvme/host/zns.c @@ -96,6 +96,7 @@ int nvme_update_zone_info(struct gendisk *disk, struct nvme_ns *ns, q->limits.zoned = BLK_ZONED_HM; blk_queue_flag_set(QUEUE_FLAG_ZONE_RESETALL, q); + blk_queue_required_elevator_features(q, ELEVATOR_F_ZBD_SEQ_WRITE); blk_queue_max_open_zones(q, le32_to_cpu(id->mor) + 1); blk_queue_max_active_zones(q, le32_to_cpu(id->mar) + 1); free_data: -- 2.17.1