diff options
author | Jens Axboe <axboe@kernel.dk> | 2018-11-14 05:32:10 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-11-26 16:25:57 +0100 |
commit | aa61bec30eca11816789dc25c2090366b0ccfaf8 (patch) | |
tree | 90fd99996f94dfa0cae4ee03c2fe8fce3f3329ee /block/bsg.c | |
parent | block: make blk_poll() take a parameter on whether to spin or not (diff) | |
download | linux-aa61bec30eca11816789dc25c2090366b0ccfaf8.tar.xz linux-aa61bec30eca11816789dc25c2090366b0ccfaf8.zip |
blk-mq: ensure mq_ops ->poll() is entered at least once
Right now we immediately bail if need_resched() is true, but
we need to do at least one loop in case we have entries waiting.
So just invert the need_resched() check, putting it at the
bottom of the loop.
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/bsg.c')
0 files changed, 0 insertions, 0 deletions