summaryrefslogtreecommitdiffstats
path: root/block/cfq.h
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2011-12-14 00:33:37 +0100
committerJens Axboe <axboe@kernel.dk>2011-12-14 00:33:37 +0100
commit481a7d64790cd7ca61a8bbcbd9d017ce58e6fe39 (patch)
tree2e8fe86240a5e95600cdad5de223050df37ab116 /block/cfq.h
parent34f6055c80285e4efb3f602a9119db75239744dc (diff)
downloadop-kernel-dev-481a7d64790cd7ca61a8bbcbd9d017ce58e6fe39.zip
op-kernel-dev-481a7d64790cd7ca61a8bbcbd9d017ce58e6fe39.tar.gz
block: fix drain_all condition in blk_drain_queue()
When trying to drain all requests, blk_drain_queue() checked only q->rq.count[]; however, this only tracks REQ_ALLOCED requests. This patch updates blk_drain_queue() such that it looks at all the counters and queues so that request_queue is actually empty on completion. Signed-off-by: Tejun Heo <tj@kernel.org> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/cfq.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud