Message ID | 20170707093249.3pskpxhf3ozfhrsr@gmail.com |
---|---|
State | RFC, archived |
Delegated to: | David Miller |
Headers | show |
--- a/kernel/exit.c +++ b/kernel/exit.c @@ -136,6 +136,12 @@ void release(struct task_struct * p) } for (i=1 ; i<NR_TASKS ; i++) if (task[i] == p) { +#ifdef __SMP__ + /* FIXME! Cheesy, but kills the window... -DaveM */ + while(p->processor != NO_PROC_ID) + barrier(); + spin_unlock_wait(&scheduler_lock); +#endif Other code learned to use spin_unlock_wait(): the original version of