2003-08-02 10:53:31

by Harald Dunkel

[permalink] [raw]
Subject: 2.6.0-test2: crash in reiserfs at shutdown

Hi folks,

I get a reproducable system crash in reiserfs at shutdown
time, when my external USB disk is going to be unmounted.

Final words are

kernel BUG at fs/reiserfs/prints.c: 339

plus a lot of more lines. If I umount the disk at normal
runtime, then there is no problem.

I would be glad to help to get this fixed, but before I
manually write down all the other lines: Is anybody
interested in this? Or is this a well known problem?


Regards

Harri


2003-08-03 06:52:54

by Oleg Drokin

[permalink] [raw]
Subject: Re: 2.6.0-test2: crash in reiserfs at shutdown

Hello!

Harald Dunkel <[email protected]> wrote:

HD> Final words are
HD> kernel BUG at fs/reiserfs/prints.c: 339

There should be one line prior to that.
This line explains what went wrong in reiserfs opinion.
Can you please say us what was the line?

Bye,
Oleg

2003-08-03 07:43:48

by Harald Dunkel

[permalink] [raw]
Subject: Re: 2.6.0-test2: crash in reiserfs at shutdown

Oleg Drokin wrote:
> Hello!
>
> Harald Dunkel <[email protected]> wrote:
>
> HD> Final words are
> HD> kernel BUG at fs/reiserfs/prints.c: 339
>
> There should be one line prior to that.
> This line explains what went wrong in reiserfs opinion.
> Can you please say us what was the line?
>
It said

unmounting local filesystems... bio too big device sdc1 (8 > 0)
bio too big device sdc1 (8 > 0)
journal - 601, buffer write failed
--- cut here ---
kernel BUG at fs/reiserfs/prints.c: 339
:

To me the problem seems that the USB stuff is shutdown
without unmounting the external USB disk first. Later, at
the "unmounting all disks" step in the shutdown procedure
the USB storage device can't be accessed anymore.


Regards

Harri

2003-08-03 07:48:52

by Oleg Drokin

[permalink] [raw]
Subject: Re: 2.6.0-test2: crash in reiserfs at shutdown

Hello!

On Sun, Aug 03, 2003 at 09:43:08AM +0200, Harald Dunkel wrote:
> >HD> Final words are
> >HD> kernel BUG at fs/reiserfs/prints.c: 339
> >There should be one line prior to that.
> >This line explains what went wrong in reiserfs opinion.
> >Can you please say us what was the line?
> It said
> unmounting local filesystems... bio too big device sdc1 (8 > 0)
> bio too big device sdc1 (8 > 0)
> journal - 601, buffer write failed

Ok, so it tried to write the journal stuff and failed.

> To me the problem seems that the USB stuff is shutdown
> without unmounting the external USB disk first. Later, at
> the "unmounting all disks" step in the shutdown procedure
> the USB storage device can't be accessed anymore.

Yes, this really seems to be a problem.
Reiserfs is really unhappy when media disappear under its feet.

Bye,
Oleg

2003-08-04 09:00:48

by Jens Axboe

[permalink] [raw]
Subject: Re: 2.6.0-test2: crash in reiserfs at shutdown

On Sun, Aug 03 2003, Harald Dunkel wrote:
> Oleg Drokin wrote:
> >Hello!
> >
> >Harald Dunkel <[email protected]> wrote:
> >
> >HD> Final words are
> >HD> kernel BUG at fs/reiserfs/prints.c: 339
> >
> >There should be one line prior to that.
> >This line explains what went wrong in reiserfs opinion.
> >Can you please say us what was the line?
> >
> It said
>
> unmounting local filesystems... bio too big device sdc1 (8 > 0)
> bio too big device sdc1 (8 > 0)
> journal - 601, buffer write failed

reiser most likely tried to flush its journal after the device had
disappeared, the queue has been memset it seems. not a reiser problem
per se.

> To me the problem seems that the USB stuff is shutdown
> without unmounting the external USB disk first. Later, at
> the "unmounting all disks" step in the shutdown procedure
> the USB storage device can't be accessed anymore.

Seems about right.

--
Jens Axboe