On Tue, Dec 19, 2006 at 03:43:19AM +0300, Oleg Nesterov wrote:... and acquires it again after woken from sleep. That can be a problem, which will lead to the problem described here: http://lkml.org/lkml/2006/12/7/374 In brief: keventd thread hotplug thread -------------- -------------- run_workqueue() | work_fn() | flush_workqueue() | flush_cpu_workqueue | cpu_down() mutex_unlock(wq_mutex); | (above opens window for hotplug) mutex_lock(wq_mutex); | /* bring down cpu */ wait_for_completition(); notifier(CPU_DEAD, ..) | workqueue_cpu_callback | cleanup_workqueue_thread | kthread_stop() | | mutex_lock(wq_mutex); <- Can deadlock The kthread_stop() will wait for keventd() thread to exit, but keventd() is blocked on mutex_lock(wq_mutex) leading to a deadlock. -- Regards, vatsa -
| Nigel Cunningham | Re: [Suspend2-devel] Re: CFS and suspend2: hang in atomic copy |
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
| Tarkan Erimer | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Bart Van Assche | Integration of SCST in the mainstream Linux kernel |
git: | |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| David Miller | [GIT]: Networking |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| KOSAKI Motohiro | [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin" |
