Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2847263pxa; Mon, 17 Aug 2020 22:33:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxNLjakJ0mMtDHraDCkbe0YxqgfXpG1XpexBN9//fgcnuc+prdyk35+MXBjWR2Fu11M9fwe X-Received: by 2002:a05:6402:17c2:: with SMTP id s2mr17727835edy.188.1597728834609; Mon, 17 Aug 2020 22:33:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597728834; cv=none; d=google.com; s=arc-20160816; b=ujpLxJg4Dyzmitrna78XnwTly17Gn1lO8q4lX6CRLTuhkcn1ex4aYOqf//sDVUBYFJ bNmseqevu6zoC+HcTjCM0K7UvzEGQjQVl2WR/rtO0o9uKENAHyLxdYm4AO8o6RmIh8Vz JXZUeM08FgaukU5nut5ktI2eCPuDxaqVNNhl2uB/0CKwtsL/HZP37piZ4bTxSLTASvA8 RxF4BflNhHUtyK/P2TPTrygc+g72UGrlo/9wPedVC967jL8BetRVmXTuonb9Q1guYm8T BfYf5WT2CxsixfvIRim/8AAJd/+2ITmg7BcnsxNf8cRbUtp/XnGF1tSAVzDnPjBep8va JCng== 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:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter; bh=66kQeZByB3VnREw6Hl+ROm5Q6QIF8sAgKa2bKNZTkAA=; b=TvPG6m9i+x3scsR2IN1fSLH5iVtGn2JNIBiGgJCbGSW0Kuq5XsXyJZI0jZq9cWVWBH Wb39RdEALFwshUzWmM/smWBlNrTSfvWr1P9T7xGCaz2YDLrxKhU5r7D9DmexV/+72Tsj O5E1L8y/EwYVZEhnxiJEfbjUdE6scY/r5SDDwkXxCaPQiGYGftoQ3ZTP4I4G36yjdZWg PtCUEi1dwvdRJNvOzVgqaagb5JBtO9WOeiwCoPL0OkPSgyhx6oiWXWDz2Zw3jpzTfwKK ZLGJ3nfBUaqp8mwrLfPIW3VsYZ66gtlKWA6KF/VFT1k6I5GWCAxurvMJbJRj1/2tvkRB S6MQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=cUDFwKwD; 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 b1si13492136ejb.515.2020.08.17.22.33.31; Mon, 17 Aug 2020 22:33:54 -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=cUDFwKwD; 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 S1726398AbgHRFcz (ORCPT + 99 others); Tue, 18 Aug 2020 01:32:55 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:42049 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726228AbgHRFcx (ORCPT ); Tue, 18 Aug 2020 01:32:53 -0400 Received: from epcas5p2.samsung.com (unknown [182.195.41.40]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20200818053249epoutp039dad7c13e75fb8fe49fad0db15e9d53a~sRdnLtiwF1275712757epoutp03K for ; Tue, 18 Aug 2020 05:32:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20200818053249epoutp039dad7c13e75fb8fe49fad0db15e9d53a~sRdnLtiwF1275712757epoutp03K DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1597728769; bh=66kQeZByB3VnREw6Hl+ROm5Q6QIF8sAgKa2bKNZTkAA=; h=From:To:Cc:Subject:Date:References:From; b=cUDFwKwD78cqc4T0gaKUCPTNk4lA9n9hCpBvbfClc2aSwPvLEgXuA4KUGYkiGewTh 8R8ByA62rdHKMqsliMNZIpXs3OxPFXGCeezaHN2P5ZI0YC8iiyPt3PBKDPaavLvUki RKDniWBpK6XeIkMM/bcd2RVdWsal7c1H9kyyaJMY= Received: from epsmges5p3new.samsung.com (unknown [182.195.42.75]) by epcas5p2.samsung.com (KnoxPortal) with ESMTP id 20200818053248epcas5p250cd894b5acc7a515373a4b58710eff0~sRdmFd7i01864818648epcas5p2B; Tue, 18 Aug 2020 05:32:48 +0000 (GMT) Received: from epcas5p3.samsung.com ( [182.195.41.41]) by epsmges5p3new.samsung.com (Symantec Messaging Gateway) with SMTP id A9.6D.09475.0086B3F5; Tue, 18 Aug 2020 14:32:48 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas5p2.samsung.com (KnoxPortal) with ESMTPA id 20200818053247epcas5p262c5fd7e207dfa5145011c4329cf239d~sRdljwzDd1442114421epcas5p2g; Tue, 18 Aug 2020 05:32:47 +0000 (GMT) Received: from epsmgms1p2.samsung.com (unknown [182.195.42.42]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20200818053247epsmtrp26dd0f18a837b9ad2fbaa36b241852e5f~sRdli_BPp2759627596epsmtrp2_; Tue, 18 Aug 2020 05:32:47 +0000 (GMT) X-AuditID: b6c32a4b-39fff70000002503-65-5f3b6800a4ca Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p2.samsung.com (Symantec Messaging Gateway) with SMTP id C8.36.08303.FF76B3F5; Tue, 18 Aug 2020 14:32:47 +0900 (KST) Received: from test-zns.sa.corp.samsungelectronics.net (unknown [107.110.206.5]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20200818053246epsmtip2a23b4ff878a27fde3da047c92e58bb70~sRdj_3rPM1985219852epsmtip2R; Tue, 18 Aug 2020 05:32:45 +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 0/2] enable append-emulation for ZNS Date: Tue, 18 Aug 2020 10:59:34 +0530 Message-Id: <20200818052936.10995-1-joshi.k@samsung.com> X-Mailer: git-send-email 2.17.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrDIsWRmVeSWpSXmKPExsWy7bCmpi5DhnW8wa23/Ba/p09htVh9t5/N orX9G5PFytVHmSz+dt1jsjj6/y2bxaRD1xgtLu+aw2Yxf9lTdosrUxYxW6x7/Z7Fgdvj/L2N LB6Xz5Z6bFrVyeaxeUm9x+6bDWwefVtWMXp83iTn0X6gmymAI4rLJiU1J7MstUjfLoErY8Kc PraCGywVJ+/sY2lgfMPcxcjJISFgIvF59w62LkYuDiGB3YwS77fdZodwPjFKvH7eDJX5zCjR vnomC0zLnFVToap2MUosXXSZEcJpZZL4vKEHaDAHB5uApsSFyaUgDSICsRIzLnWzgNQwCzQz Stw5s4wVJCEMNOn4z4tsIDaLgKrEiutPgHrZOXgFLCTmpUHskpdYveEAM0irhMAjdonv188w QiRcJNbd2AZlC0u8Or6FHcKWkvj8bi8bhF0s8evOUajmDkaJ6w0wH9hLXNzzlwnkTmagO9fv 0gcJMwvwSfT+fgIWlhDglehoE4KoVpS4N+kpK4QtLvFwxhIo20Ni5e1nYCcIAb248OVupgmM MrMQhi5gZFzFKJlaUJybnlpsWmCcl1quV5yYW1yal66XnJ+7iRGcILS8dzA+evBB7xAjEwfj IUYJDmYlEd6kE+bxQrwpiZVVqUX58UWlOanFhxilOViUxHmVfpyJExJITyxJzU5NLUgtgsky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i0utVbu+Fz37vOBO2w+Bf6c7ZCzQtr+7jeZf2P/LT1Me9hiwbf9Yu K2KfGsdfeKM8+nhV6Kb/vN4rNt69xft5/cad38OPbPpfo3thg2PA23/FPyzap1+Z3rClOjXA ZS3j1tVfa0y5lly553FxglGUjWz2OgNPdr6aCb/n77UOSJARf//9dtHxh1MLM+J40s6+qU7p COPZLPa3+NWLz8uOxnR2/lmuxKyVMlXccqI6K4tq4GolluKMREMt5qLiRADDMAgHsQIAAA== X-CMS-MailID: 20200818053247epcas5p262c5fd7e207dfa5145011c4329cf239d X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" CMS-TYPE: 105P X-CMS-RootMailID: 20200818053247epcas5p262c5fd7e207dfa5145011c4329cf239d References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Currently NVMe driver rejects the ZNS device if zone-append is not supported natively. Make it accept the device and activate append-emulation instead. This is mostly borrowed from SCSI emulation. The other patch enforces a zone-friendly I/O scheduler for ZNS. Kanchan Joshi (2): nvme: set io-scheduler requirement for ZNS nvme: add emulation for zone-append drivers/nvme/host/core.c | 41 +++++- drivers/nvme/host/nvme.h | 60 ++++++++ drivers/nvme/host/zns.c | 307 ++++++++++++++++++++++++++++++++++++++- 3 files changed, 399 insertions(+), 9 deletions(-) -- 2.17.1