From bc280dcf0ee3baacc344da0a1aa5dbbaf005eaa8 Mon Sep 17 00:00:00 2001 From: Vivek Goyal Date: Wed, 9 Mar 2011 08:27:37 +0100 Subject: [PATCH] --- yaml --- r: 242283 b: refs/heads/master c: 69d60eb96ae8a73cf9b79cf28051caf973006011 h: refs/heads/master i: 242281: e61629e1ccc74379a6667a23d66f62bbc7a00b80 242279: 24e90a82c57392b1c307a2be6aa0b0b7e54a0c38 v: v3 --- [refs] | 2 +- trunk/block/blk-throttle.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 4581b1413cd9..e36a8c5b2aed 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 721a9602e6607417c6bc15b18e97a2f35266c690 +refs/heads/master: 69d60eb96ae8a73cf9b79cf28051caf973006011 diff --git a/trunk/block/blk-throttle.c b/trunk/block/blk-throttle.c index b8dcdc2663a1..658ee505315b 100644 --- a/trunk/block/blk-throttle.c +++ b/trunk/block/blk-throttle.c @@ -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); @@ -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; }