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 :
> "Also sprach denis bonnenfant:"
> [Charset ISO-8859-1 unsupported, filtering to ASCII...]
> 
>>>OK. So it seems that rtmp goes wrong.  
>>>
>>>  printk(KERN_INFO "md %d: ** mddev=%p rdev=%p rtmp=%p\n", __LINE__,
>>>                                    mddev, rdev, rtmp);
>>>
>>>Peter
>>
>>md 3875: ** mddev=f7fc8480 rdev=f7fc8490 rtmp=f7cbbcc0
>>Unable to handle kernel NULL pointer dereference at virtual address 00000004
>>  printing eip:
> 
> 
> Are you sure it does NOT exit that loop? You have another printk
> outside?
> 
Yes, i made tests with  this one :

			ITERATE_RDEV(mddev,rdev,rtmp) {
				if (!mddev) {
					printk(KERN_INFO "md: *****BUG***mddev***********!!!\n");
					break;
				}
				printk(KERN_INFO "md: *****mddev=%p rdev=%p *************!!!\n", 
mddev, rdev);
				if (!rdev) {
					printk(KERN_INFO "md: *****BUG**rdev*************!!!\n");
					break;
				}
				if (rdev->raid_disk < 0
				    && !rdev->faulty) {
					if (mddev->pers->hot_add_disk(mddev,rdev))
						spares++;
					else {
						printk(KERN_INFO "********break\n");
						break;
					}
				}
				printk(KERN_INFO "md: *****test2************!!!\n");
}

And ******test2 wasn't reached, nor *****break.
I have a lot of printks outside of this loop, never reached too

> Anyway, in a second or two I'll expand the loop a bit more.
> 
> Peter
> _______________________________________________
> ENBD mailing list
> [email protected]
> http://lists.community.tummy.com/mailman/listinfo/enbd
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.