diff options
author | Paul E. McKenney <[email protected]> | 2017-06-29 12:08:26 -0700 |
---|---|---|
committer | Paul E. McKenney <[email protected]> | 2017-08-11 13:09:14 -0700 |
commit | 23a9b748a3d27f67cdb078fcb891a920285e75d9 (patch) | |
tree | 3939c14a9385cb193210f2fb20e0edf4b96cf55b /kernel/sched/completion.c | |
parent | f274f1e72d7171c80c8c790040e47a23a74796b6 (diff) |
sched: Replace spin_unlock_wait() with lock/unlock pair
There is no agreed-upon definition of spin_unlock_wait()'s semantics,
and it appears that all callers could do just as well with a lock/unlock
pair. This commit therefore replaces the spin_unlock_wait() call in
do_task_dead() with spin_lock() followed immediately by spin_unlock().
This should be safe from a performance perspective because the lock is
this tasks ->pi_lock, and this is called only after the task exits.
Signed-off-by: Paul E. McKenney <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Will Deacon <[email protected]>
Cc: Alan Stern <[email protected]>
Cc: Andrea Parri <[email protected]>
Cc: Linus Torvalds <[email protected]>
[ paulmck: Drop smp_mb() based on Peter Zijlstra's analysis:
http://lkml.kernel.org/r/[email protected] ]
Diffstat (limited to 'kernel/sched/completion.c')
0 files changed, 0 insertions, 0 deletions