Re: init scripts problems ?

denis bonnenfant <[email protected]>
Newsgroups gmane.linux.enbd.general
Message-ID <[email protected]>
denis bonnenfant wrote:
> denis bonnenfant wrote:
> 
>> denis bonnenfant wrote:
>>
>>>> I've just checked the enbd_open() code and I see nothing suspicious
>>>> there _except_ maybe the "media check" that is launched in the kernel:
>>>>
>>>>         if (do_media_check) {
>>>>                         // PTB this invalidates buffers, if necessary
>>>>                         ENBD_INFO ("DISK CHECK wanted in open on 
>>>> device nd%s\n",
>>>>                                 lo->devnam);
>>>>                         lo->last_checked = jiffies;
>>>>                         check_disk_change(inode->i_bdev);
>>>>         }
>>>>
>>>>
>>>> It may be worth disabling that whole check and seeing what happens. As
>>>> I recall the kernel tries to read the partition table (the first
>>>> sectors) of the "disk" (enbd) and then adds the result to
>>>> /proc/partitions.
>>>
>>>
>>>
>>>>
>>>> But I'm not even sure the code sticks in OPEN, rather than at the first
>>>> read. The WCHAN value might indicate.
>>
>>
>>
>> OK, i can reproduce it, even with only one nbd device open.
>>
>> in this case, WCHAN is page_sync for one enbd-client, and select for 
>> the others.
> 
> 
> oups, it's sync_page !

and stext for the others
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.