blk-mq: when polling for IO, look for any completion
authorJens Axboe <axboe@kernel.dk>
Mon, 26 Nov 2018 15:21:49 +0000 (08:21 -0700)
committerJens Axboe <axboe@kernel.dk>
Mon, 26 Nov 2018 15:25:40 +0000 (08:25 -0700)
commit1052b8ac5282daf35df331edcbdb645839d17e6a
tree416e6bcaea468503613abeaf1e9705fea5aa94f9
parent1db4909e76f64a85f4aaa187f0f683f5c85a471d
blk-mq: when polling for IO, look for any completion

If we want to support async IO polling, then we have to allow finding
completions that aren't just for the one we are looking for. Always pass
in -1 to the mq_ops->poll() helper, and have that return how many events
were found in this poll loop.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-core.c
block/blk-mq.c
drivers/nvme/host/pci.c
drivers/nvme/host/rdma.c
include/linux/blkdev.h