block: only allow polling if a poll queue_map exists
authorChristoph Hellwig <hch@lst.de>
Sun, 2 Dec 2018 16:46:27 +0000 (17:46 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 4 Dec 2018 18:38:19 +0000 (11:38 -0700)
commit376f7ef8bfeaee3993c2e85df1bbaa06725b9342
tree9a7bf2119d51f020f30f2426ecde3af333c4ea07
parent529262d56dbebe6a26df5d2fd24cc0e1bc8579e5
block: only allow polling if a poll queue_map exists

This avoids having to have differnet mq_ops for different setups
with or without poll queues.

Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-sysfs.c
drivers/nvme/host/pci.c