nvme: wire up async polling for io passthrough commands
authorKanchan Joshi <joshi.k@samsung.com>
Tue, 23 Aug 2022 16:14:43 +0000 (21:44 +0530)
committerJens Axboe <axboe@kernel.dk>
Wed, 21 Sep 2022 16:30:42 +0000 (10:30 -0600)
commit585079b6e425387b5f8ec242fc38081c31ca41ee
tree29defec58e0b7ed9911fbc8ced8fd4bdcaf51bf7
parentc6e99ea482e2a9e1fef2488891242f9749584225
nvme: wire up async polling for io passthrough commands

Store a cookie during submission, and use that to implement
completion-polling inside the ->uring_cmd_iopoll handler.
This handler makes use of existing bio poll facility.

Signed-off-by: Kanchan Joshi <joshi.k@samsung.com>
Signed-off-by: Anuj Gupta <anuj20.g@samsung.com>
Link: https://lore.kernel.org/r/20220823161443.49436-5-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/multipath.c
drivers/nvme/host/nvme.h