From: Christoph Hellwig <hch@lst.de>
To: Chaitanya Kulkarni <Chaitanya.Kulkarni@wdc.com>
Cc: Christoph Hellwig <hch@lst.de>,
"linux-block@vger.kernel.org" <linux-block@vger.kernel.org>,
"linux-nvme@lists.infradead.org" <linux-nvme@lists.infradead.org>,
"sagi@grimberg.me" <sagi@grimberg.me>,
Damien Le Moal <Damien.LeMoal@wdc.com>,
Johannes Thumshirn <Johannes.Thumshirn@wdc.com>
Subject: Re: [PATCH V4 2/9] nvmet: add ZNS support for bdev-ns
Date: Fri, 4 Dec 2020 10:27:42 +0100 [thread overview]
Message-ID: <20201204092742.GA8955@lst.de> (raw)
In-Reply-To: <BYAPR04MB4965E50D3DCEFE4A0970631286F10@BYAPR04MB4965.namprd04.prod.outlook.com>
On Fri, Dec 04, 2020 at 03:13:40AM +0000, Chaitanya Kulkarni wrote:
> >> + if (!bdev_is_zoned(nvmet_bdev(req)))
> >> + return NVME_SC_SUCCESS;
> >> +
> >> + return nvmet_copy_ns_identifier(req, NVME_NIDT_CSI, NVME_NIDT_CSI_LEN,
> >> + &nvme_cis_zns, off);
> >> +}
> > This looks weird. We can want to support the command set identifier in
> > general, so this should go into common code, and just look up the command
> > set identifier in the nvmet_ns structure.
>
> ZNS is the only user for this, so I've added to the zns code. I'll move to
>
> admin-cmd.
CSI is a generic feature, ZNS is just the first thing that requires it.
> > This will change the limit when a new namespaces is added. I think we need
> > to just pick the value of the first namespaces and refuse adding a new
> > one if the limit is lower to not completely break hosts.
>
> But that will force users to add ns with highest zasl first no matter what.
>
> Isn't there should be a way to update the host with async event
>
> so that host can refresh the ctrl->zasl when ns addition async notification
>
> is generated ?
I'd rather not go too dynamic and change capabilities down dynamically.
I think that will cause all kinds of fun problems with I/Os already
queue up in the block layer while the limit changes.
WARNING: multiple messages have this Message-ID (diff)
From: Christoph Hellwig <hch@lst.de>
To: Chaitanya Kulkarni <Chaitanya.Kulkarni@wdc.com>
Cc: Damien Le Moal <Damien.LeMoal@wdc.com>,
"sagi@grimberg.me" <sagi@grimberg.me>,
Johannes Thumshirn <Johannes.Thumshirn@wdc.com>,
"linux-nvme@lists.infradead.org" <linux-nvme@lists.infradead.org>,
"linux-block@vger.kernel.org" <linux-block@vger.kernel.org>,
Christoph Hellwig <hch@lst.de>
Subject: Re: [PATCH V4 2/9] nvmet: add ZNS support for bdev-ns
Date: Fri, 4 Dec 2020 10:27:42 +0100 [thread overview]
Message-ID: <20201204092742.GA8955@lst.de> (raw)
In-Reply-To: <BYAPR04MB4965E50D3DCEFE4A0970631286F10@BYAPR04MB4965.namprd04.prod.outlook.com>
On Fri, Dec 04, 2020 at 03:13:40AM +0000, Chaitanya Kulkarni wrote:
> >> + if (!bdev_is_zoned(nvmet_bdev(req)))
> >> + return NVME_SC_SUCCESS;
> >> +
> >> + return nvmet_copy_ns_identifier(req, NVME_NIDT_CSI, NVME_NIDT_CSI_LEN,
> >> + &nvme_cis_zns, off);
> >> +}
> > This looks weird. We can want to support the command set identifier in
> > general, so this should go into common code, and just look up the command
> > set identifier in the nvmet_ns structure.
>
> ZNS is the only user for this, so I've added to the zns code. I'll move to
>
> admin-cmd.
CSI is a generic feature, ZNS is just the first thing that requires it.
> > This will change the limit when a new namespaces is added. I think we need
> > to just pick the value of the first namespaces and refuse adding a new
> > one if the limit is lower to not completely break hosts.
>
> But that will force users to add ns with highest zasl first no matter what.
>
> Isn't there should be a way to update the host with async event
>
> so that host can refresh the ctrl->zasl when ns addition async notification
>
> is generated ?
I'd rather not go too dynamic and change capabilities down dynamically.
I think that will cause all kinds of fun problems with I/Os already
queue up in the block layer while the limit changes.
_______________________________________________
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-04 9:28 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 [this message]
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 ` [PATCH V4 9/9] nvmet: add ZNS based I/O cmds handlers Chaitanya Kulkarni
2020-12-02 6:22 ` 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=20201204092742.GA8955@lst.de \
--to=hch@lst.de \
--cc=Chaitanya.Kulkarni@wdc.com \
--cc=Damien.LeMoal@wdc.com \
--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: link
Be 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.