]> www.infradead.org Git - users/jedix/linux-maple.git/commit
nvme: submit internal commands through the block layer
authorChristoph Hellwig <hch@lst.de>
Fri, 22 May 2015 09:12:46 +0000 (11:12 +0200)
committerChuck Anderson <chuck.anderson@oracle.com>
Wed, 6 Jul 2016 23:31:46 +0000 (16:31 -0700)
commit0d9dabb6174f3b73cc2ce29d2bc1de337624a779
tree34ca8eb6aa448e0a7af543c1265301aa6a6ca68d
parent7e609a80899dea337174242f62dd7c24a6a74716
nvme: submit internal commands through the block layer

Use block layer queues with an internal cmd_type to submit internally
generated NVMe commands.  This both simplifies the code a lot and allow
for a better structure.  For example now the LighNVM code can construct
commands without knowing the details of the underlying I/O descriptors.
Or a future NVMe over network target could inject commands, as well as
could the SCSI translation and ioctl code be reused for such a beast.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
(cherry picked from commit d29ec8241c10eacf59c23b3828a88dbae06e7e3f)

Orabug: 22620486
Signed-off-by: Jason Luo <zhangqing.luo@oracle.com>
Conflicts:
drivers/block/nvme-core.c
drivers/block/nvme-core.c
drivers/block/nvme-scsi.c
include/linux/nvme.h