diff options
author | Tejun Heo <htejun@gmail.com> | 2005-11-10 08:48:21 +0100 |
---|---|---|
committer | Jens Axboe <axboe@nelson.home.kernel.dk> | 2005-11-12 10:55:37 +0100 |
commit | 407df2aa29a33fe16f6ee4bac8cdfa414783b9f1 (patch) | |
tree | 137e536d79e9fc777adc8c5bde842fea8b53d88a /block/elevator.c | |
parent | 47a004103d663bbba8c7c433a710a86f44351cf3 (diff) | |
download | blackbird-op-linux-407df2aa29a33fe16f6ee4bac8cdfa414783b9f1.tar.gz blackbird-op-linux-407df2aa29a33fe16f6ee4bac8cdfa414783b9f1.zip |
[BLOCK] elevator: run queue in elevator_switch
elevator_dispatch needs to run queue after forced dispatching;
otherwise, the queue might stall.
Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jens Axboe <axboe@suse.de>
Diffstat (limited to 'block/elevator.c')
-rw-r--r-- | block/elevator.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/block/elevator.c b/block/elevator.c index e58928e809ea..a475b1a19f67 100644 --- a/block/elevator.c +++ b/block/elevator.c @@ -696,6 +696,8 @@ static void elevator_switch(request_queue_t *q, struct elevator_type *new_e) ; while (q->rq.elvpriv) { + blk_remove_plug(q); + q->request_fn(q); spin_unlock_irq(q->queue_lock); msleep(10); spin_lock_irq(q->queue_lock); |