[PATCH] kthread: allow kthread_stop calls to run in parallel

2008-01-12 Thread Jeff Layton
Currently, all kthread_stop calls are serialized. If something calls kthread_stop on a kthread, no other kthread will be able to be brought down until the first kthread_stop returns. A "rogue" kthread could therefore prevent other kthreads from ever coming down. This patch makes it so that

[PATCH] kthread: allow kthread_stop calls to run in parallel

2008-01-12 Thread Jeff Layton
Currently, all kthread_stop calls are serialized. If something calls kthread_stop on a kthread, no other kthread will be able to be brought down until the first kthread_stop returns. A rogue kthread could therefore prevent other kthreads from ever coming down. This patch makes it so that