From: Tejun Heo Date: Tue, 13 Dec 2011 23:33:37 +0000 (+0100) Subject: block: fix drain_all condition in blk_drain_queue() X-Git-Tag: v3.3-rc1~49^2~29 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=481a7d64790cd7ca61a8bbcbd9d017ce58e6fe39;p=pandora-kernel.git 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 Signed-off-by: Jens Axboe --- Reading git-diff-tree failed