xfs
[Top] [All Lists]

Re: kernel BUG at filemap.c:843!

To: James Lee <jlee@xxxxxxxxxx>
Subject: Re: kernel BUG at filemap.c:843!
From: Eric Sandeen <sandeen@xxxxxxx>
Date: 13 Aug 2002 14:03:36 -0500
Cc: linux-xfs@xxxxxxxxxxx, ilmari@xxxxxxxxxxx
In-reply-to: <012301c241cb$16ea8530$fe232fd1@corona>
References: <d8jsn1k9b03.fsf@wirth.ping.uio.no> <012301c241cb$16ea8530$fe232fd1@corona>
Sender: owner-linux-xfs@xxxxxxxxxxx
Hi guys - 

We treat MD and LVM somewhat specially, and I wonder if in this case MD
is masking the fact that you're using LVM, and that might be where the
problem starts.

Can you try this patch, which will cause LVM & MD to be treated the
same, to see if it helps?  It's probably not the final solution, but it
might offer some hints.

Thanks,

-Eric

--- linux/fs/xfs/pagebuf/page_buf_locking.c_1.24 Tue Aug 13 14:05:18 2002
+++ linux/fs/xfs/pagebuf/page_buf_locking.c      Tue Aug 13 13:59:37 2002
@@ -198,7 +196,7 @@
        pagebuf_target_blocksize(target, PAGE_CACHE_SIZE);
        
        if ((MAJOR(dev) == MD_MAJOR) || (MAJOR(dev) == EVMS_MAJOR))
-               target->pbr_flags = PBR_ALIGNED_ONLY;
+               target->pbr_flags = PBR_SECTOR_ONLY;
        else if (MAJOR(dev) == LVM_BLK_MAJOR)
                target->pbr_flags = PBR_SECTOR_ONLY;
        else



On Mon, 2002-08-12 at 01:40, James Lee wrote:
> Hi,
> 
> I'm also having the exactly same problem.
> Tested with 2.4.19-xfs(checked out from SGI's CVS on Aug 10) on Redhat 7.2.
> Kernel and userland tools are compiled with gcc 2.91.66
> The following is the result of some tests:
> 
> scsidisks -> xfs: OK
> scsidisks -> raid5 -> xfs: OK
> scsidisks -> lvm -> xfs: OK
> scsidisks -> raid0 -> lvm -> xfs: OK
> scsidisks -> raid1 -> lvm -> xfs: OK
> scsidisks -> raid5 -> lvm -> xfs: kernel BUG at filemap.c:843!
> 
> This problem is always reproducible with the following shell script:
> 
>         #!/bin/sh
>         mkraid /dev/md0
>         vgcreate VolumeGroup /dev/md0
>         lvcreate -L1G -nTestVolume VolumeGroup
>         mkfs.xfs -f -d size=32m /dev/VolumeGroup/TestVolume
>         mount -t xfs /dev/VolumeGroup/TestVolume
> /mnt -onoatime,nodiratime,usrquota,grpquota
> 
> Whenever I run the above script, mount command always generates kernel oops.
> But, if I insert some delay as of the following, then mount goes well:


-- 
Eric Sandeen      XFS for Linux     http://oss.sgi.com/projects/xfs
sandeen@xxxxxxx   SGI, Inc.         651-683-3102


<Prev in Thread] Current Thread [Next in Thread>