Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 276693
b: refs/heads/master
c: 4eabc94
h: refs/heads/master
i:
  276691: 1dd55a6
v: v3
  • Loading branch information
Tejun Heo authored and Jens Axboe committed Dec 15, 2011
1 parent 334a1ec commit 636638a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b302545744c031eae04a43fb1c56cc17e00a193a
refs/heads/master: 4eabc941259f9d8c8fb71746d3f30c87e1d9e49b
9 changes: 8 additions & 1 deletion trunk/block/blk-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,14 @@ void blk_drain_queue(struct request_queue *q, bool drain_all)
if (drain_all)
blk_throtl_drain(q);

__blk_run_queue(q);
/*
* This function might be called on a queue which failed
* driver init after queue creation. Some drivers
* (e.g. fd) get unhappy in such cases. Kick queue iff
* dispatch queue has something on it.
*/
if (!list_empty(&q->queue_head))
__blk_run_queue(q);

if (drain_all)
nr_rqs = q->rq.count[0] + q->rq.count[1];
Expand Down

0 comments on commit 636638a

Please sign in to comment.