diff options
author | Ming Lei <ming.lei@redhat.com> | 2018-12-18 05:15:29 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-12-18 05:35:07 +0100 |
commit | cd19181bf9ad4b7f40f2a4e0355d052109c76529 (patch) | |
tree | 30896b4375d72ec6097eedfebaf193b368d9db0e /drivers/md/dm-rq.c | |
parent | blk-mq: change blk_mq_queue_busy() to blk_mq_queue_inflight() (diff) | |
download | linux-cd19181bf9ad4b7f40f2a4e0355d052109c76529.tar.xz linux-cd19181bf9ad4b7f40f2a4e0355d052109c76529.zip |
blk-mq: enable IO poll if .nr_queues of type poll > 0
The queue mapping of type poll only exists when set->map[HCTX_TYPE_POLL].nr_queues
is bigger than zero, so enhance the constraint by checking .nr_queues of type poll
before enabling IO poll.
Otherwise IO race & timeout can be observed when running block/007.
Cc: Jeff Moyer <jmoyer@redhat.com>
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/md/dm-rq.c')
0 files changed, 0 insertions, 0 deletions