diff options
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) | |||
696 | ; | 696 | ; |
697 | 697 | ||
698 | while (q->rq.elvpriv) { | 698 | while (q->rq.elvpriv) { |
699 | blk_remove_plug(q); | ||
700 | q->request_fn(q); | ||
699 | spin_unlock_irq(q->queue_lock); | 701 | spin_unlock_irq(q->queue_lock); |
700 | msleep(10); | 702 | msleep(10); |
701 | spin_lock_irq(q->queue_lock); | 703 | spin_lock_irq(q->queue_lock); |