From: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com> To: linux-block@vger.kernel.org, linux-nvme@lists.infradead.org Cc: sagi@grimberg.me, hch@lst.de, damien.lemoal@wdc.com, johannes.thumshirn@wdc.com, Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com> Subject: [PATCH V4 9/9] nvmet: add ZNS based I/O cmds handlers Date: Tue, 1 Dec 2020 22:22:27 -0800 [thread overview] Message-ID: <20201202062227.9826-10-chaitanya.kulkarni@wdc.com> (raw) In-Reply-To: <20201202062227.9826-1-chaitanya.kulkarni@wdc.com> Add zone-mgmt-send, zone-mgmt-recv and zone-zppend handlers for the bdev backend so that it can support zbd. Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com> --- drivers/nvme/target/io-cmd-bdev.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/nvme/target/io-cmd-bdev.c b/drivers/nvme/target/io-cmd-bdev.c index e1f6d59dd341..25dcd0544d5d 100644 --- a/drivers/nvme/target/io-cmd-bdev.c +++ b/drivers/nvme/target/io-cmd-bdev.c @@ -453,6 +453,15 @@ u16 nvmet_bdev_parse_io_cmd(struct nvmet_req *req) case nvme_cmd_write_zeroes: req->execute = nvmet_bdev_execute_write_zeroes; return 0; + case nvme_cmd_zone_append: + req->execute = nvmet_bdev_execute_zone_append; + return 0; + case nvme_cmd_zone_mgmt_recv: + req->execute = nvmet_bdev_execute_zone_mgmt_recv; + return 0; + case nvme_cmd_zone_mgmt_send: + req->execute = nvmet_bdev_execute_zone_mgmt_send; + return 0; default: pr_err("unhandled cmd %d on qid %d\n", cmd->common.opcode, req->sq->qid); -- 2.22.1
WARNING: multiple messages have this Message-ID (diff)
From: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com> To: linux-block@vger.kernel.org, linux-nvme@lists.infradead.org Cc: johannes.thumshirn@wdc.com, damien.lemoal@wdc.com, sagi@grimberg.me, Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>, hch@lst.de Subject: [PATCH V4 9/9] nvmet: add ZNS based I/O cmds handlers Date: Tue, 1 Dec 2020 22:22:27 -0800 [thread overview] Message-ID: <20201202062227.9826-10-chaitanya.kulkarni@wdc.com> (raw) In-Reply-To: <20201202062227.9826-1-chaitanya.kulkarni@wdc.com> Add zone-mgmt-send, zone-mgmt-recv and zone-zppend handlers for the bdev backend so that it can support zbd. Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com> --- drivers/nvme/target/io-cmd-bdev.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/nvme/target/io-cmd-bdev.c b/drivers/nvme/target/io-cmd-bdev.c index e1f6d59dd341..25dcd0544d5d 100644 --- a/drivers/nvme/target/io-cmd-bdev.c +++ b/drivers/nvme/target/io-cmd-bdev.c @@ -453,6 +453,15 @@ u16 nvmet_bdev_parse_io_cmd(struct nvmet_req *req) case nvme_cmd_write_zeroes: req->execute = nvmet_bdev_execute_write_zeroes; return 0; + case nvme_cmd_zone_append: + req->execute = nvmet_bdev_execute_zone_append; + return 0; + case nvme_cmd_zone_mgmt_recv: + req->execute = nvmet_bdev_execute_zone_mgmt_recv; + return 0; + case nvme_cmd_zone_mgmt_send: + req->execute = nvmet_bdev_execute_zone_mgmt_send; + return 0; default: pr_err("unhandled cmd %d on qid %d\n", cmd->common.opcode, req->sq->qid); -- 2.22.1 _______________________________________________ Linux-nvme mailing list Linux-nvme@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-nvme
next prev parent reply other threads:[~2020-12-02 6:25 UTC|newest] Thread overview: 54+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-12-02 6:22 [PATCH V4 0/9] nvmet: add ZBD backend support Chaitanya Kulkarni 2020-12-02 6:22 ` Chaitanya Kulkarni 2020-12-02 6:22 ` [PATCH V4 1/9] block: allow bvec for zone append get pages Chaitanya Kulkarni 2020-12-02 6:22 ` Chaitanya Kulkarni 2020-12-02 8:34 ` Johannes Thumshirn 2020-12-02 8:34 ` Johannes Thumshirn 2020-12-02 8:55 ` Christoph Hellwig 2020-12-02 8:55 ` Christoph Hellwig 2020-12-04 2:43 ` Chaitanya Kulkarni 2020-12-04 2:43 ` Chaitanya Kulkarni 2020-12-04 8:46 ` hch 2020-12-04 8:46 ` hch 2020-12-02 6:22 ` [PATCH V4 2/9] nvmet: add ZNS support for bdev-ns Chaitanya Kulkarni 2020-12-02 6:22 ` Chaitanya Kulkarni 2020-12-02 9:07 ` Christoph Hellwig 2020-12-02 9:07 ` Christoph Hellwig 2020-12-04 3:13 ` Chaitanya Kulkarni 2020-12-04 3:13 ` Chaitanya Kulkarni 2020-12-04 9:27 ` Christoph Hellwig 2020-12-04 9:27 ` Christoph Hellwig 2020-12-02 6:22 ` [PATCH V4 3/9] nvmet: trim down id-desclist to use req->ns Chaitanya Kulkarni 2020-12-02 6:22 ` Chaitanya Kulkarni 2020-12-02 9:08 ` Christoph Hellwig 2020-12-02 9:08 ` Christoph Hellwig 2020-12-04 3:14 ` Chaitanya Kulkarni 2020-12-04 3:14 ` Chaitanya Kulkarni 2020-12-02 6:22 ` [PATCH V4 4/9] nvmet: add NVME_CSI_ZNS in ns-desc for zbdev Chaitanya Kulkarni 2020-12-02 6:22 ` Chaitanya Kulkarni 2020-12-02 9:09 ` Christoph Hellwig 2020-12-02 9:09 ` Christoph Hellwig 2020-12-04 3:14 ` Chaitanya Kulkarni 2020-12-04 3:14 ` Chaitanya Kulkarni 2020-12-02 6:22 ` [PATCH V4 5/9] nvmet: add cns-cs-ctrl in id-ctrl for ZNS bdev Chaitanya Kulkarni 2020-12-02 6:22 ` Chaitanya Kulkarni 2020-12-02 9:10 ` Christoph Hellwig 2020-12-02 9:10 ` Christoph Hellwig 2020-12-04 3:20 ` Chaitanya Kulkarni 2020-12-04 3:20 ` Chaitanya Kulkarni 2020-12-04 9:28 ` Christoph Hellwig 2020-12-04 9:28 ` Christoph Hellwig 2020-12-02 6:22 ` [PATCH V4 6/9] nvmet: add cns-cs-ns " Chaitanya Kulkarni 2020-12-02 6:22 ` Chaitanya Kulkarni 2020-12-02 6:22 ` [PATCH V4 7/9] nvmet: add zns cmd effects to support zbdev Chaitanya Kulkarni 2020-12-02 6:22 ` Chaitanya Kulkarni 2020-12-02 6:22 ` [PATCH V4 8/9] nvmet: add zns bdev config support Chaitanya Kulkarni 2020-12-02 6:22 ` Chaitanya Kulkarni 2020-12-02 6:22 ` Chaitanya Kulkarni [this message] 2020-12-02 6:22 ` [PATCH V4 9/9] nvmet: add ZNS based I/O cmds handlers Chaitanya Kulkarni 2020-12-02 9:20 ` [PATCH V4 0/9] nvmet: add ZBD backend support Christoph Hellwig 2020-12-02 9:20 ` Christoph Hellwig 2020-12-10 3:07 ` Chaitanya Kulkarni 2020-12-10 3:07 ` Chaitanya Kulkarni 2020-12-10 15:15 ` Keith Busch 2020-12-10 15:15 ` Keith Busch
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20201202062227.9826-10-chaitanya.kulkarni@wdc.com \ --to=chaitanya.kulkarni@wdc.com \ --cc=damien.lemoal@wdc.com \ --cc=hch@lst.de \ --cc=johannes.thumshirn@wdc.com \ --cc=linux-block@vger.kernel.org \ --cc=linux-nvme@lists.infradead.org \ --cc=sagi@grimberg.me \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.