public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Tommy Faasen <tommy@vuurwerk.nl>
To: Roman Zippel <zippel@linux-m68k.org>
Cc: Linux kernel Mailinglist <linux-kernel@vger.kernel.org>,
	mingo@redhat.com
Subject: Re: [OOPS] 2.5.11 software raid,reiserfs & scsi
Date: 30 Apr 2002 22:56:07 +0200	[thread overview]
Message-ID: <1020200168.599.0.camel@it0> (raw)
In-Reply-To: <Pine.LNX.4.21.0204302056120.23113-100000@serv>

On Tue, 2002-04-30 at 20:58, Roman Zippel wrote:
> 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.
> 
Thanks, that did it for me!
> 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/
> 
> 



      reply	other threads:[~2002-04-30 20:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-29 17:20 [OOPS] 2.5.11 software raid,reiserfs & scsi Tommy Faasen
2002-04-30 18:58 ` Roman Zippel
2002-04-30 20:56   ` Tommy Faasen [this message]

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=1020200168.599.0.camel@it0 \
    --to=tommy@vuurwerk.nl \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=zippel@linux-m68k.org \
    /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