nvme: allow user passthrough commands to poll
authorKeith Busch <kbusch@kernel.org>
Mon, 20 Dec 2021 14:17:33 +0000 (19:47 +0530)
committerJens Axboe <axboe@kernel.dk>
Tue, 21 Dec 2021 16:38:25 +0000 (09:38 -0700)
commit8d684aa889d335d791e6c7adeb070345bfbba26a
tree358c02b8953bc89fc738cd687b6f96e4de58643c
parente010e95010c0026d0a78cb212b30bea0a2e80bd7
nvme: allow user passthrough commands to poll

The block layer knows how to deal with polled requests. Let the NVMe
driver use the previously reserved user "flags" fields to define an
option to allocate the request from the polled hardware contexts. If
polling is not enabled, then the block layer will automatically fallback
to a non-polled request.[1]

[1] https://lore.kernel.org/linux-block/20210517171443.GB2709391@dhcp-10-100-145-180.wdc.com/

Signed-off-by: Keith Busch <kbusch@kernel.org>
Link: https://lore.kernel.org/r/20211220141734.12206-13-joshi.k@samsung.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/host/core.c
drivers/nvme/host/ioctl.c
drivers/nvme/host/nvme.h
drivers/nvme/host/pci.c
drivers/nvme/target/passthru.c
include/uapi/linux/nvme_ioctl.h