On Saturday December 9, [EMAIL PROTECTED] wrote:
> 
> Hi,
> 
> Is there any hope of raid1 over loopback mounts working? I wanted to put
> together some regression tests for sparclinux (eg I found out yesterday our
> xor is broken, don't know how long it was broken for). Avoiding the need
> for real partitions would make it easier to run the tests on other machines.
> 
> I could successfully use a raid0 and raid5 partition made up of loopback
> mounts, but as soon as I mount a raid1 partition it died with:
> 
> Kernel panic: loop: block not locked
> 
> I guess the reconstruction thread was not happy. This is on an ide disk, so
> I assume the error came from drivers/ide/ide.c:start_request().
> 
> Anton


I assume you are talking 2.4-test??
Does this help?

--- drivers/md/raid1.c  2000/12/09 07:58:25     1.1
+++ drivers/md/raid1.c  2000/12/09 07:58:38
@@ -1396,7 +1396,7 @@
        bh->b_list = BUF_LOCKED;
        bh->b_dev = mirror->dev;
        bh->b_rdev = mirror->dev;
-       bh->b_state = (1<<BH_Req) | (1<<BH_Mapped);
+       bh->b_state = (1<<BH_Req) | (1<<BH_Mapped) | (1<<BH_Lock);
        if (!bh->b_page)
                BUG();
        if (!bh->b_data)


NeilBrown
-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to [EMAIL PROTECTED]

Reply via email to