[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [2.6 PATCH/RFC] Firmware loader - fix races and resource dealloocation problems


On Wed, Dec 31, 2003 at 11:32:44PM +0100, Manuel Estrada Sainz wrote:
> 
>  Maybe some generic mechanism could be implemented to make the hotplug
>  event wait for the files.

No.

>  The least intrusive solution, although it doesn't sound quite clean could be:
> 
>  - Kernel side:
>  	- sysfs_hotplug_frezze()
>  		- Creates a dummy file /sys/.hotplug_frozen
>  	- sysfs_hotplug_thaw()
>  		- Removes /sys/.hotplug_frozen
>  - Userspace:
> 	- Main hotplug script waits "while [ -f /sys/.hotplug_frozen ]".

Ick.  You realize how many hotplug events we spit out already today?
This would be a huge bottleneck.

It's not that tough to just see if the file you are looking is there,
and if not sleep.  If after an ammount of time the file still isn't
there, just give up.

Also, not all hotplug scripts care about sysfs files being present :)

thanks,

greg k-h
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo _at_ vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


この情報があなたの探していたものかどうか選択してください。
yes/まさにこれだ!   no/違うなぁ   part/一部見つかった   try/これで試してみる

あなたが探していた情報はどのようなことか、ご自由に記入下さい。特に「まさにこれだ!」と言う場合は記入をお願いします。
例:「複数のマシンからCATV経由でipmasqueradeを利用してWebを参照したい場合の設定について」
References: