Re: Re: fr1 with iSCSI on 2.6.11?

denis <[email protected]>
Newsgroups gmane.linux.enbd.general
Message-ID <[email protected]>
denis a écrit :

>
> Now some problems in md :
>
>  CC [M]  drivers/md/raid1.o
> drivers/md/raid1.c: In function `sync_request':
> drivers/md/raid1.c:1500: warning: passing arg 1 of `md_sync_acct' from 
> incompatible pointer type

and kernel oops :

Unable to handle kernel NULL pointer dereference at virtual address 00000058
 printing eip:
f88b4129
*pde = 00000000
Oops: 0000 [#1]
PREEMPT
Modules linked in: raid1 bitmap raid0 megaraid r8169 e1000 md usbkbd 
parport_pc lp parport
CPU:    0
EIP:    0060:[<f88b4129>]    Not tainted VLI
EFLAGS: 00010202   (2.6.11.12enbd-fr1)
EIP is at sync_request+0x261/0x7e0 [raid1]
eax: 00000000   ebx: 00000001   ecx: f4ec38a8   edx: 00000000
esi: 00000001   edi: ebaee200   ebp: 00000080   esp: ec5f1e34


normally it's here  :

        if (count > 0 && block_not_dirty) {
                /* skip */

-                md_sync_acct(mirror->rdev, nr_sectors);
+               md_sync_acct(mirror->rdev->bdev, nr_sectors);
                // sync_request_done(sector_nr, conf);
                md_done_sync(mddev, nr_sectors, 1);

                for (i = 0; i < count; i++) {
                        int mirror = targets[i];
                        atomic_dec(&conf->mirrors[mirror].rdev->nr_pending);
                }

I hope that it is sufficient... At least it compiles now without warnings
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.