aboutsummaryrefslogtreecommitdiff
path: root/block/blk-mq-sched.c
diff options
context:
space:
mode:
authorGravatar Jens Axboe <axboe@fb.com> 2017-04-20 17:23:13 -0600
committerGravatar Jens Axboe <axboe@fb.com> 2017-04-20 17:23:13 -0600
commit5feeacdd4a75bc6e5c6c613ae09ef07bc5dfd05a (patch)
treea0ee5921bc165f4680fc0afa35250217298fec48 /block/blk-mq-sched.c
parentblk-mq: Fix poll_stat for new size-based bucketing. (diff)
downloadlinux-5feeacdd4a75bc6e5c6c613ae09ef07bc5dfd05a.tar.gz
linux-5feeacdd4a75bc6e5c6c613ae09ef07bc5dfd05a.tar.bz2
linux-5feeacdd4a75bc6e5c6c613ae09ef07bc5dfd05a.zip
blk-mq: add might_sleep check to blk_mq_get_driver_tag()
If the caller passes in wait=true, it has to be able to block for a driver tag. We just had a bug where flush insertion would block on tag allocation, while we had preempt disabled. Ensure that we catch cases like that earlier next time. Reviewed-by: Bart Van Assche <Bart.VanAssche@sandisk.com> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'block/blk-mq-sched.c')
0 files changed, 0 insertions, 0 deletions