Re: patch md-raid5-allow-for-more-than-2-31-chunks.patch added to 2.6.33-stable tree

From: Stefan Lippers-Hollmann
Date: Fri Apr 23 2010 - 07:54:14 EST


Hi

On Friday 23 April 2010, Greg KH wrote:
> On Thu, Apr 22, 2010 at 01:36:26PM +0200, Stefan Lippers-Hollmann wrote:
> > Hi
> >
> > On Thursday 22 April 2010, Neil Brown wrote:
> > > On Thu, 22 Apr 2010 04:08:30 +0200
> > > "Stefan Lippers-Hollmann" <s.L-H@xxxxxx> wrote:
> > > > On Thursday 22 April 2010, gregkh@xxxxxxx wrote:
> > [...]
> > > > > From 35f2a591192d0a5d9f7fc696869c76f0b8e49c3d Mon Sep 17 00:00:00 2001
> > > > > From: NeilBrown <neilb@xxxxxxx>
> > > > > Date: Tue, 20 Apr 2010 14:13:34 +1000
> > > > > Subject: md/raid5: allow for more than 2^31 chunks.
> > > > >
> > > > > From: NeilBrown <neilb@xxxxxxx>
> > > > >
> > > > > commit 35f2a591192d0a5d9f7fc696869c76f0b8e49c3d upstream.
> > > > >
> > > > > With many large drives and small chunk sizes it is possible
> > > > > to create a RAID5 with more than 2^31 chunks. Make sure this
> > > > > works.
> > > > >
> > > > > Reported-by: Brett King <king.br@xxxxxxxxx>
> > > > > Signed-off-by: NeilBrown <neilb@xxxxxxx>
> > > > > Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxx>
> > > >
> > > > This patch, as part of the current 2.6.33 stable queue, breaks compiling
> > > > on i386 (CONFIG_LBDAF=y) for me (amd64 builds fine):
> > > >
> > > > [...]
> > > > BUILD arch/x86/boot/bzImage
> > > > Root device is (254, 6)
> > > > Setup is 12700 bytes (padded to 12800 bytes).
> > > > System is 2415 kB
> > > > CRC db6fa5fa
> > > > Kernel: arch/x86/boot/bzImage is ready (#1)
> > > > ERROR: "__umoddi3" [drivers/md/raid456.ko] undefined!
> > > >
> > > > reverting just this patch fixes the problem for me.
> > >
> > > Thanks for testing and reporting.
> > >
> > > If you could verify that this additional patch fixes the compile error I
> > > would really appreciate it.
> >
> > I can confirm that this patch on top of the original
> > md-raid5-allow-for-more-than-2-31-chunks.patch fixes the build problem on
> > i386 for me (amd64 continues to build fine as well).
> >
> > Tested-by: Stefan Lippers-Hollmann <s.l-h@xxxxxx>
>
> Neil, care to push this to Linus?

Gitweb: http://git.kernel.org/linus/6e3b96ed610e5a1838e62ddae9fa0c3463f235fa
Commit: 6e3b96ed610e5a1838e62ddae9fa0c3463f235fa
Parent: 35f2a591192d0a5d9f7fc696869c76f0b8e49c3d
Author: NeilBrown <neilb@xxxxxxx>
AuthorDate: Fri Apr 23 07:08:28 2010 +1000
Committer: NeilBrown <neilb@xxxxxxx>
CommitDate: Fri Apr 23 07:08:28 2010 +1000

md/raid5: fix previous patch.

Previous patch changes stripe and chunk_number to sector_t but
mistakenly did not update all of the divisions to use sector_dev().

This patch changes all the those divisions (actually the '%' operator)
to sector_div.

Signed-off-by: NeilBrown <neilb@xxxxxxx>
Cc: stable@xxxxxxxxxx
Tested-by: Stefan Lippers-Hollmann <s.l-h@xxxxxx>

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