summaryrefslogtreecommitdiffstats
path: root/block/Kconfig.iosched
diff options
context:
space:
mode:
authorTejun Heo2012-03-06 21:24:55 +0100
committerJens Axboe2012-03-06 21:24:55 +0100
commitb855b04a0b2213dbc1b59cf936056726e7ed97ad (patch)
tree26a432c7f8d014531059a3f0789199d3dde2e3da /block/Kconfig.iosched
parentblock, sx8: fix pointer math issue getting fw version (diff)
downloadkernel-qcow2-linux-b855b04a0b2213dbc1b59cf936056726e7ed97ad.tar.gz
kernel-qcow2-linux-b855b04a0b2213dbc1b59cf936056726e7ed97ad.tar.xz
kernel-qcow2-linux-b855b04a0b2213dbc1b59cf936056726e7ed97ad.zip
block: blk-throttle should be drained regardless of q->elevator
Currently, blk_cleanup_queue() doesn't call elv_drain_elevator() if q->elevator doesn't exist; however, bio based drivers don't have elevator initialized but can still use blk-throttle. This patch moves q->elevator test inside blk_drain_queue() such that only elv_drain_elevator() is skipped if !q->elevator. -v2: loop can have registered queue which has NULL request_fn. Make sure we don't call into __blk_run_queue() in such cases. Signed-off-by: Tejun Heo <tj@kernel.org> Reported-by: Vivek Goyal <vgoyal@redhat.com> Fold in bug fix from Vivek. Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/Kconfig.iosched')
0 files changed, 0 insertions, 0 deletions