mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Hugh Dickins <hugh@veritas.com>
To: Tomasz Torcz <zdzichu@irc.pl>
Cc: "Ronny V. Vindenes" <s864@ii.uib.no>, linux-kernel@vger.kernel.org
Subject: Re: Linux 2.6.13-rc1
Date: Wed, 29 Jun 2005 16:07:30 +0100 (BST)	[thread overview]
Message-ID: <Pine.LNX.4.61.0506291604340.14413@goblin.wat.veritas.com> (raw)
In-Reply-To: <20050629145806.GA5803@irc.pl>

On Wed, 29 Jun 2005, Tomasz Torcz wrote:
> On Wed, Jun 29, 2005 at 04:23:11PM +0200, Ronny V. Vindenes wrote:
> > 
> > On x86_64 with reiserfs and ext3 on dm (using cfq scheduler) the log
> > is full of this:
> > 
> > Badness in blk_remove_plug at drivers/block/ll_rw_blk.c:1424
> 
>  Also on x86, Reiserfs on LVM2, cfq, on sata_sil; Preemption set to
> Voluntary.

You should find the patch I posted just a little earlier fixes all that...

get_request is now expected to be holding on to queue_lock, with interrupts
disabled, when it returns NULL; but one path forgot that, causing all kinds
of nastiness under swap load - badness backtraces, strange failures, BUGs.

Signed-off-by: Hugh Dickins <hugh@veritas.com>

--- 2.6.13-rc1/drivers/block/ll_rw_blk.c	2005-06-29 11:54:08.000000000 +0100
+++ linux/drivers/block/ll_rw_blk.c	2005-06-29 14:41:04.000000000 +0100
@@ -1917,10 +1917,9 @@ get_rq:
 	 * limit of requests, otherwise we could have thousands of requests
 	 * allocated with any setting of ->nr_requests
 	 */
-	if (rl->count[rw] >= (3 * q->nr_requests / 2)) {
-		spin_unlock_irq(q->queue_lock);
+	if (rl->count[rw] >= (3 * q->nr_requests / 2))
 		goto out;
-	}
+
 	rl->count[rw]++;
 	rl->starved[rw] = 0;
 	if (rl->count[rw] >= queue_congestion_on_threshold(q))

  reply	other threads:[~2005-06-29 15:06 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <4kEoS-Am-3@gated-at.bofh.it>
2005-06-29 14:23 ` Ronny V. Vindenes
2005-06-29 14:58   ` Tomasz Torcz
2005-06-29 15:07     ` Hugh Dickins [this message]
2005-06-29 15:20       ` Ronny V. Vindenes
2005-06-29  6:30 Linus Torvalds
2005-06-29  7:46 ` Brice Goglin
2005-06-29  9:02   ` Brice Goglin
2005-06-29  9:29 ` William Lee Irwin III
2005-06-29 19:31 ` Jesper Juhl
2005-06-29 21:00   ` David Weinehall
2005-06-29 22:34 ` Bill Davidsen

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=Pine.LNX.4.61.0506291604340.14413@goblin.wat.veritas.com \
    --to=hugh@veritas.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=s864@ii.uib.no \
    --cc=zdzichu@irc.pl \
    /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

all inboxes | Powered by JetHome®