public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] blk: run queue in elevator_switch
@ 2005-11-09 17:13 Tejun Heo
  2005-11-10  7:45 ` Jens Axboe
  0 siblings, 1 reply; 2+ messages in thread
From: Tejun Heo @ 2005-11-09 17:13 UTC (permalink / raw)
  To: axboe, linux-kernel

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

Signed-off-by: Tejun Heo <htejun@gmail.com>

diff --git a/block/elevator.c b/block/elevator.c
--- a/block/elevator.c
+++ b/block/elevator.c
@@ -695,6 +695,8 @@ static void elevator_switch(request_queu
 		;
 
 	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);

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] blk: run queue in elevator_switch
  2005-11-09 17:13 [PATCH] blk: run queue in elevator_switch Tejun Heo
@ 2005-11-10  7:45 ` Jens Axboe
  0 siblings, 0 replies; 2+ messages in thread
From: Jens Axboe @ 2005-11-10  7:45 UTC (permalink / raw)
  To: Tejun Heo; +Cc: linux-kernel

On Thu, Nov 10 2005, Tejun Heo wrote:
> elevator_dispatch needs to run queue after forced dispatching;
> otherwise, the queue might stall.
> 
> Signed-off-by: Tejun Heo <htejun@gmail.com>

Thanks, applied.

-- 
Jens Axboe


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-11-10  7:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-09 17:13 [PATCH] blk: run queue in elevator_switch Tejun Heo
2005-11-10  7:45 ` Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox