blk-mq: when polling for IO, look for any completion
authorJens Axboe <axboe@kernel.dk>
Mon, 19 Nov 2018 18:26:42 +0000 (11:26 -0700)
committerJens Axboe <axboe@kernel.dk>
Mon, 19 Nov 2018 19:06:55 +0000 (12:06 -0700)
commit53506d41dc4b40a9edf5aff487a6b2e8df9834d0
treeb88e8cf999a51e1cfd8b80aace7ad0660f7aea4d
parent92f806d678e5136e4777b21e5ed5368482ac9ea9
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