Re: Re: fr1-2.16 patch for 2.6.10 kernel

denis bonnenfant <[email protected]>
Newsgroups gmane.linux.enbd.general
Message-ID <[email protected]>
Peter T. Breuer a écrit :
> Try
> 
>     rdev = list_entry(mddev->disks.next, mdk_rdev_t, same_set);
>     while(1) {
> 
>         printk(KERN_INFO "md %d: ** mddev=%p rdev=%p\n", __LINE__, mddev, rdev);
> 
>         if (&rdev->same_set == &mddev->disks)
>             break;
> 
>         if (rdev->raid_disk < 0 && !rdev->faulty) {
>             if (mddev->pers->hot_add_disk(mddev,rdev))
>                 spares++;
>             else
>                 break;
>         }
>         rdev = list_entry(rdev->same_set.next, mdk_rdev_t, same_set))
>     }
> 
> 
> I can't quite guarantee that I have calculated correctly in order to be
> able to say that that loop is equivalent to the original, so be prepared
> for an extra crash.
> 
> Peter

It doesn't change anything. same result (but no extra crash :-) ).
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.