Re: [OOPS] 2.5.11 software raid,reiserfs & scsi

From: Roman Zippel (zippel@linux-m68k.org)
Date: Tue Apr 30 2002 - 13:58:41 EST


Hi,

On 29 Apr 2002, Tommy Faasen wrote:

> I got an oops on 2.5.11 with an software raid 0 setup on 3 scsi disks,
> it worked ok on 2.5.8. I get this when booting up and then my /dev/md0
> isn't found.. If you need more details/help let me know!

The patch below fixes it for me.
rdev doesn't point to a valid raid partition.

bye, Roman

Index: drivers/md/md.c
===================================================================
RCS file: /usr/src/cvsroot/linux-2.5/drivers/md/md.c,v
retrieving revision 1.1.1.8
diff -u -p -r1.1.1.8 md.c
--- drivers/md/md.c 29 Apr 2002 17:35:50 -0000 1.1.1.8
+++ drivers/md/md.c 30 Apr 2002 17:52:04 -0000
@@ -1577,6 +1577,7 @@ static int device_size_calculation(mddev
         if (!md_size[mdidx(mddev)])
                 md_size[mdidx(mddev)] = sb->size * data_disks;
 
+ rdev = list_entry(mddev->disks.next, mdk_rdev_t, same_set);
         readahead = (blk_get_readahead(rdev->bdev) * 512) / PAGE_SIZE;
         if (!sb->level || (sb->level == 4) || (sb->level == 5)) {
                 readahead = (mddev->sb->chunk_size>>PAGE_SHIFT) * 4 * data_disks;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Apr 30 2002 - 22:00:19 EST