]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit57d8e5ce9eba09bcbafc1ceb208cb1795d50a484
tree29defec58e0b7ed9911fbc8ced8fd4bdcaf51bf7
parentee0cf5e4fb28bede4d21f40b9a530d8f4133937f
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