Le 25.03.2005 02:00, Patrick Mochel a écrit :
On Thu, 24 Mar 2005, Andrew Morton wrote:Laurent Riffard <[email protected]> wrote:hello, Same kinds of problem here. It depends on the removed module. I mean: "rmmod loop" or "rmmod pcspkr" works. But "rmmod snd_ens1371" or "rmmod ohci1394" hangs. Sysrq-T when rmmoding snd_ens1371 :<snip>It looks like we're getting stuck in the wait_for_completion() in the new klist_remove().D'oh! It's getting hung while waiting to remove the current node from the list (which it can't remove because it's being used). The patch below should fix it. Pat ===== drivers/base/dd.c 1.3 vs edited ===== --- 1.3/drivers/base/dd.c 2005-03-21 12:25:04 -08:00 +++ edited/drivers/base/dd.c 2005-03-24 16:55:21 -08:00 @@ -177,7 +177,7 @@ sysfs_remove_link(&drv->kobj, kobject_name(&dev->kobj)); sysfs_remove_link(&dev->kobj, "driver"); - klist_remove(&dev->knode_driver); + klist_del(&dev->knode_driver); down(&dev->sem); device_detach_shutdown(dev);
Ok, I can confirm this patch solved the problem. Thanks for your help. -- laurent
Attachment:
signature.asc
Description: OpenPGP digital signature
- References:
- 2.6.12-rc1-mm2
- From: Andrew Morton <[email protected]>
- Re: 2.6.12-rc1-mm2
- From: Lee Revell <[email protected]>
- Re: 2.6.12-rc1-mm2
- From: Andrew Morton <[email protected]>
- Re: 2.6.12-rc1-mm2
- From: "Rafael J. Wysocki" <[email protected]>
- Re: 2.6.12-rc1-mm2
- From: Laurent Riffard <[email protected]>
- Re: 2.6.12-rc1-mm2
- From: Andrew Morton <[email protected]>
- Re: 2.6.12-rc1-mm2
- From: Patrick Mochel <[email protected]>
- 2.6.12-rc1-mm2
- Prev by Date: Re: bad caching behavior in 2.6.12rc1
- Next by Date: Re: [PATCH] driver core: Separate platform device name from platform device number
- Previous by thread: Re: 2.6.12-rc1-mm2
- Next by thread: Re: 2.6.12-rc1-mm2
- Index(es):