From: hch@lst.de (Christoph Hellwig)
Subject: [RFC PATCH 0/8] nvmet: implement target passthru commands support
Date: Fri, 13 Apr 2018 19:35:37 +0200 [thread overview]
Message-ID: <20180413173537.GD23674@lst.de> (raw)
In-Reply-To: <e089febc-577f-354d-dceb-0410d9115e1f@grimberg.me>
On Wed, Apr 04, 2018@02:44:11PM +0300, Sagi Grimberg wrote:
> So for normal IO commands, I would simply move the bio construction loop
> to shared code and call it from either the normal nvmet_execute_* or
> nvmet_execute_passthru_io_cmd. I still don't understand what that buys
> us... I guess one benefit would be to utilize ranged (merged) discards
> instead of executing them range by range...
What are "normal" I/O commands? There can be vendor defined I/O
commands that can do all kinds of weird things the block layer can't
do. Hell, there are plenty of NVMe defined I/O commands that map to
nothing the block layer could deal with.
We'll need an implementation that can deal with anything thrown at
it, and Chaitanya has written that (turns out that part looks fairly
trivial, it's all the setup around it that is a bit of a mess).
> For admin commands I would do something different though, why not simply
> exporting __nvme_passthru_cmd (portion of nvme_user_cmd) and simply call
> that with a bit of tweaks to the host memory layout. That would
> eliminate the re-code in nvmet_execute_admin_cmd() Thoughts?
Why? Not really much simpler, probably much slower due to the synchronous
nature, and it also requires reshuffling the on the wire format of the
SQe into another form just to unpack it again.
> We need code to exclude more than a single access to the same passthru
> controller (or subsystem in fact). Otherwise we might be exposing the
> user to lots of troubles...
Only to the same controller I think, and then only allow one fabrics
controller to be created for it.
> Its also odd that a namespace is given a passthru access to a
> controller. Maybe we need to add a configfs interface for passthru
> subsystems? (under subsystems/ we have passthru file that takes the
> controller name or subsystem id or something)
>
> Then automatically all the namespaces of that controller will be exposed
> via the subsystem
Sounds reasonable.
> So namespace management needs a mechanism to add the new namespace via
> the fabrics target. This would require adding an event client mechanism
> to nvme that will create that namespace in nvmet before issuing the
> AEN.
Yeah, for now we should simply disallow it. Unfortunatelt it turns out
the whole NVMe architecture isn't really well suitable for any kind of
tunneling.
prev parent reply other threads:[~2018-04-13 17:35 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-30 6:57 [RFC PATCH 0/8] nvmet: implement target passthru commands support Chaitanya Kulkarni
2018-03-30 6:57 ` [RFC PATCH 1/8] nvme-core: add new interfaces Chaitanya Kulkarni
2018-03-30 17:48 ` Logan Gunthorpe
2018-04-02 23:25 ` Chaitanya Kulkarni
2018-04-04 11:52 ` Sagi Grimberg
2018-04-13 17:27 ` Christoph Hellwig
2018-03-30 6:57 ` [RFC PATCH 2/8] nvme-core: export existing ctrl and ns interfaces Chaitanya Kulkarni
2018-04-04 11:59 ` Sagi Grimberg
2018-03-30 6:57 ` [RFC PATCH 3/8] nvmet: add passthru members in target subsys Chaitanya Kulkarni
2018-03-30 6:57 ` [RFC PATCH 4/8] nvmet: use const values for id-ctrl Chaitanya Kulkarni
2018-03-30 18:50 ` Logan Gunthorpe
2018-04-02 23:27 ` Chaitanya Kulkarni
2018-04-13 17:28 ` Christoph Hellwig
2018-03-30 6:57 ` [RFC PATCH 5/8] nvmet: export nvmet_add_async_event api Chaitanya Kulkarni
2018-03-30 6:57 ` [RFC PATCH 6/8] nvmet: add target passthru command support Chaitanya Kulkarni
2018-03-30 6:57 ` [RFC PATCH 7/8] nvmet: integrate passthru code with target core Chaitanya Kulkarni
2018-03-30 6:57 ` [RFC PATCH 8/8] nvmet: add configfs interface for target passthru Chaitanya Kulkarni
2018-03-30 18:13 ` Logan Gunthorpe
2018-04-03 0:13 ` Chaitanya Kulkarni
2018-04-03 3:21 ` Logan Gunthorpe
2018-04-13 17:30 ` Christoph Hellwig
2018-04-13 17:37 ` Logan Gunthorpe
2018-04-13 21:50 ` Stephen Bates
2018-03-30 17:46 ` [RFC PATCH 0/8] nvmet: implement target passthru commands support Logan Gunthorpe
2018-04-02 23:23 ` Chaitanya Kulkarni
2018-04-04 11:44 ` Sagi Grimberg
2018-04-13 17:35 ` Christoph Hellwig [this message]
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=20180413173537.GD23674@lst.de \
--to=hch@lst.de \
/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.