linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: back-trace on mounting ide cd-rom
  2003-04-02 23:31 back-trace on mounting ide cd-rom Robert Love
@ 2003-04-02 23:24 ` Bryan Rittmeyer
  2003-04-02 23:45 ` Andrew Morton
  1 sibling, 0 replies; 4+ messages in thread
From: Bryan Rittmeyer @ 2003-04-02 23:24 UTC (permalink / raw)
  To: Robert Love; +Cc: linux-kernel

On Wed, Apr 02, 2003 at 06:31:59PM -0500, Robert Love wrote:
> 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.

weak guess: maybe mount is trying to auto-probe the filesystem and the
ext3 code gets upset on cdrom. are you using -t iso9660?

-Bryan

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

* back-trace on mounting ide cd-rom
@ 2003-04-02 23:31 Robert Love
  2003-04-02 23:24 ` Bryan Rittmeyer
  2003-04-02 23:45 ` Andrew Morton
  0 siblings, 2 replies; 4+ messages in thread
From: Robert Love @ 2003-04-02 23:31 UTC (permalink / raw)
  To: linux-kernel; +Cc: akpm

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
        Call Trace:
         [<c0149d80>] __wait_on_buffer+0xe0/0xf0
         [<c0117b10>] autoremove_wake_function+0x0/0x50
         [<c0117b10>] autoremove_wake_function+0x0/0x50
         [<c014bcff>] __block_prepare_write+0x11f/0x460
         [<c0187d9a>] start_this_handle+0xaa/0x1f0
         [<c014c874>] block_prepare_write+0x34/0x50
         [<c017d760>] ext3_get_block+0x0/0xa0
         [<c017dd41>] ext3_prepare_write+0x71/0x130
         [<c017d760>] ext3_get_block+0x0/0xa0
         [<c012eeb9>] generic_file_aio_write_nolock+0x369/0xa50
         [<c012da90>] file_read_actor+0x0/0x130
         [<c012dd84>] __generic_file_aio_read+0x1c4/0x210
         [<c012f6c5>] generic_file_aio_write+0x85/0xb0
         [<c017b5b4>] ext3_file_write+0x44/0xe0
         [<c0148a0b>] do_sync_write+0x8b/0xc0
         [<c015aa11>] __pollwait+0x41/0xd0
         [<c015a9d0>] __pollwait+0x0/0xd0
         [<c015b07e>] sys_select+0x26e/0x560
         [<c0147b78>] filp_open+0x68/0x70
         [<c0148afe>] vfs_write+0xbe/0x130
         [<c0148c0e>] sys_write+0x3e/0x60
         [<c0109259>] sysenter_past_esp+0x52/0x71
         
        end_request: I/O error, dev hdc, sector 0
        end_request: I/O error, dev hdc, sector 0
        ISO 9660 Extensions: RRIP_1991A

Ideas?

	Robert Love


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

* Re: back-trace on mounting ide cd-rom
  2003-04-02 23:31 back-trace on mounting ide cd-rom Robert Love
  2003-04-02 23:24 ` Bryan Rittmeyer
@ 2003-04-02 23:45 ` Andrew Morton
  2003-04-03  1:40   ` Robert Love
  1 sibling, 1 reply; 4+ messages in thread
From: Andrew Morton @ 2003-04-02 23:45 UTC (permalink / raw)
  To: Robert Love; +Cc: linux-kernel

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 {

_


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

* Re: back-trace on mounting ide cd-rom
  2003-04-02 23:45 ` Andrew Morton
@ 2003-04-03  1:40   ` Robert Love
  0 siblings, 0 replies; 4+ messages in thread
From: Robert Love @ 2003-04-03  1:40 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux-kernel

On Wed, 2003-04-02 at 18:45, Andrew Morton wrote:

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

That fixed it (or it is not reproducing itself).

Thanks, Andrew.  Glad to be of service.

	Robert Love


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

end of thread, other threads:[~2003-04-03  1:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-02 23:31 back-trace on mounting ide cd-rom Robert Love
2003-04-02 23:24 ` Bryan Rittmeyer
2003-04-02 23:45 ` Andrew Morton
2003-04-03  1:40   ` Robert Love

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).