diff options
| author | Oleg Nesterov <[email protected]> | 2009-06-17 16:27:45 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2009-06-18 13:03:54 -0700 |
| commit | 371cbb387e33651b4c1326457116568ff01ac422 (patch) | |
| tree | 4678d02d44fc9764f316e5d84e5d307cc14a0923 /include/linux | |
| parent | 63706172f332fd3f6e7458ebfb35fa6de9c21dc5 (diff) | |
kthreads: simplify migration_thread() exit path
Now that kthread_stop() can be used even if the task has already exited,
we can kill the "wait_to_die:" loop in migration_thread(). But we must
pin rq->migration_thread after creation.
Actually, I don't think CPU_UP_CANCELED or CPU_DEAD should wait for
->migration_thread exit. Perhaps we can simplify this code a bit more.
migration_call() can set ->should_stop and forget about this thread. But
we need a new helper in kthred.c for that.
Signed-off-by: Oleg Nesterov <[email protected]>
Cc: Christoph Hellwig <[email protected]>
Cc: "Eric W. Biederman" <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Pavel Emelyanov <[email protected]>
Cc: Rusty Russell <[email protected]>
Cc: Vitaliy Gusev <[email protected]
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions