Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 407df2aa authored by Tejun Heo's avatar Tejun Heo Committed by Jens Axboe
Browse files

[BLOCK] elevator: run queue in elevator_switch



elevator_dispatch needs to run queue after forced dispatching;
otherwise, the queue might stall.

Signed-off-by: default avatarTejun Heo <htejun@gmail.com>
Signed-off-by: default avatarJens Axboe <axboe@suse.de>
parent 47a00410
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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);