nvme: Add async passthru polling support nvme-passthru-wip.2
authorPankaj Raghav <p.raghav@samsung.com>
Mon, 20 Dec 2021 14:17:34 +0000 (19:47 +0530)
committerJens Axboe <axboe@kernel.dk>
Tue, 21 Dec 2021 16:38:25 +0000 (09:38 -0700)
commit7567defdb3c6a81e4114a03ddf3d6c158df81a76
tree58db2804294104872c606b4f29a7e44543370b3c
parent8d684aa889d335d791e6c7adeb070345bfbba26a
nvme: Add async passthru polling support

IO_URING already has polling support for read and write. This patch
extends that support for uring cmd passthu. The unused flag in
uring_cmd struct is used to indicate if the completion should be polled.
If device side polling is not enabled, then the submission request will
fallback to a non-polled request.

Signed-off-by: Pankaj Raghav <p.raghav@samsung.com>
Link: https://lore.kernel.org/r/20211220141734.12206-14-joshi.k@samsung.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c
drivers/nvme/host/core.c
drivers/nvme/host/ioctl.c
drivers/nvme/host/multipath.c
drivers/nvme/host/nvme.h
fs/io_uring.c
include/linux/blk-mq.h
include/linux/io_uring.h