Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 242283
b: refs/heads/master
c: 69d60eb
h: refs/heads/master
i:
  242281: e61629e
  242279: 24e90a8
v: v3
  • Loading branch information
Vivek Goyal authored and Jens Axboe committed Mar 10, 2011
1 parent 820fc1e commit bc280dc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 721a9602e6607417c6bc15b18e97a2f35266c690
refs/heads/master: 69d60eb96ae8a73cf9b79cf28051caf973006011
3 changes: 3 additions & 0 deletions trunk/block/blk-throttle.c
Original file line number Diff line number Diff line change
Expand Up @@ -770,6 +770,7 @@ static int throtl_dispatch(struct request_queue *q)
unsigned int nr_disp = 0;
struct bio_list bio_list_on_stack;
struct bio *bio;
struct blk_plug plug;

spin_lock_irq(q->queue_lock);

Expand Down Expand Up @@ -798,8 +799,10 @@ static int throtl_dispatch(struct request_queue *q)
* immediate dispatch
*/
if (nr_disp) {
blk_start_plug(&plug);
while((bio = bio_list_pop(&bio_list_on_stack)))
generic_make_request(bio);
blk_finish_plug(&plug);
}
return nr_disp;
}
Expand Down

0 comments on commit bc280dc

Please sign in to comment.