public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Block: Prevent busy looping
@ 2008-04-16 15:37 Elias Oltmanns
  2008-04-16 16:31 ` Jens Axboe
  0 siblings, 1 reply; 13+ messages in thread
From: Elias Oltmanns @ 2008-04-16 15:37 UTC (permalink / raw)
  To: Jens Axboe; +Cc: linux-kernel, stable

blk_run_queue() as well as blk_start_queue() plug the device on reentry
and schedule blk_unplug_work() right afterwards. However,
blk_plug_device() takes care of that already and makes sure that there is
a short delay before blk_unplug_work() is scheduled. This is important
to prevent busy looping and possibly system lockups as observed here:
<http://permalink.gmane.org/gmane.linux.ide/28351>.

Signed-off-by: Elias Oltmanns <eo@nebensachen.de>
Cc: <stable@kernel.org>
---

 block/blk-core.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/block/blk-core.c b/block/blk-core.c
index 2a438a9..e88a6f2 100644
--- a/block/blk-core.c
+++ b/block/blk-core.c
@@ -344,7 +344,6 @@ void blk_start_queue(struct request_queue *q)
 		clear_bit(QUEUE_FLAG_REENTER, &q->queue_flags);
 	} else {
 		blk_plug_device(q);
-		kblockd_schedule_work(&q->unplug_work);
 	}
 }
 EXPORT_SYMBOL(blk_start_queue);
@@ -412,7 +411,6 @@ void blk_run_queue(struct request_queue *q)
 			clear_bit(QUEUE_FLAG_REENTER, &q->queue_flags);
 		} else {
 			blk_plug_device(q);
-			kblockd_schedule_work(&q->unplug_work);
 		}
 	}
 



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

end of thread, other threads:[~2008-06-12 14:18 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-16 15:37 Block: Prevent busy looping Elias Oltmanns
2008-04-16 16:31 ` Jens Axboe
2008-04-16 16:42   ` Jens Axboe
2008-04-16 22:24   ` Elias Oltmanns
2008-04-17  7:13     ` Jens Axboe
2008-04-17  8:50       ` Elias Oltmanns
2008-06-11  7:11         ` Tejun Heo
2008-06-11  7:05           ` Alan Cox
2008-06-11  8:03             ` Tejun Heo
2008-06-12  3:06               ` Tejun Heo
2008-06-12 11:32                 ` Elias Oltmanns
2008-06-12 13:43                   ` Tejun Heo
2008-06-12 14:18                     ` James Bottomley

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