mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@digeo.com>
To: Robert Love <rml@tech9.net>
Cc: linux-kernel@vger.kernel.org
Subject: Re: back-trace on mounting ide cd-rom
Date: Wed, 2 Apr 2003 15:45:00 -0800	[thread overview]
Message-ID: <20030402154500.3e6b9a62.akpm@digeo.com> (raw)
In-Reply-To: <1049326318.2872.36.camel@localhost>

Robert Love <rml@tech9.net> wrote:
>
> I got the following errors and back-trace upon mounting my IDE CD-ROM
> (hdc).  It seems to be a normal ISO9660... its the Red Hat 9 CD.
> 
> I haven't looked into it yet.  Not sure why there is ext3 stuff in
> there... maybe the CD-ROM mount is unrelated?  Mounting the CD
> subsequent times is OK.
> 
> Kernel is 2.5.66-mm2.  UP, preempt, no highmem, i686.
> 
> Here we go:
> 
>         buffer layer error at fs/buffer.c:127

ah, my new debug code is buggy.  It is legal to wait upon a zero-ref buffer
if that buffer's page is locked.

diff -puN fs/buffer.c~a fs/buffer.c
--- 25/fs/buffer.c~a	Wed Apr  2 15:41:25 2003
+++ 25-akpm/fs/buffer.c	Wed Apr  2 15:43:02 2003
@@ -123,7 +123,8 @@ void __wait_on_buffer(struct buffer_head
 	wait_queue_head_t *wqh = bh_waitq_head(bh);
 	DEFINE_WAIT(wait);
 
-	if (atomic_read(&bh->b_count) == 0)
+	if (atomic_read(&bh->b_count) == 0 &&
+			(!bh->b_page || !PageLocked(bh->b_page)))
 		buffer_error();
 
 	do {

_


  parent reply	other threads:[~2003-04-02 23:34 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-02 23:31 Robert Love
2003-04-02 23:24 ` Bryan Rittmeyer
2003-04-02 23:45 ` Andrew Morton [this message]
2003-04-03  1:40   ` Robert Love

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=20030402154500.3e6b9a62.akpm@digeo.com \
    --to=akpm@digeo.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rml@tech9.net \
    /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®