From: Jens Axboe <jens.axboe@oracle.com>
To: Elias Oltmanns <eo@nebensachen.de>
Cc: linux-kernel@vger.kernel.org, stable@kernel.org
Subject: Re: Block: Prevent busy looping
Date: Wed, 16 Apr 2008 18:31:54 +0200 [thread overview]
Message-ID: <20080416163152.GK12774@kernel.dk> (raw)
In-Reply-To: <20080416151305.8788.63912.stgit@denkblock.local>
On Wed, Apr 16 2008, Elias Oltmanns wrote:
> 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>.
If you call blk_start_queue() and blk_run_queue(), you better mean it.
There should be no delay. The only reason it does blk_plug_device() is
so that the work queue function will actually do some work. In the newer
kernels we just do:
set_bit(QUEUE_FLAG_PLUGGED, &q->queue_flags);
kblockd_schedule_work(q, &q->unplug_work);
instead, which is much better.
--
Jens Axboe
next prev parent reply other threads:[~2008-04-16 16:32 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-16 15:37 Block: Prevent busy looping Elias Oltmanns
2008-04-16 16:31 ` Jens Axboe [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080416163152.GK12774@kernel.dk \
--to=jens.axboe@oracle.com \
--cc=eo@nebensachen.de \
--cc=linux-kernel@vger.kernel.org \
--cc=stable@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox