summaryrefslogtreecommitdiffstats
path: root/ipc/sem.c
diff options
context:
space:
mode:
authorPeter Zijlstra <peterz@infradead.org>2016-05-24 14:45:21 +0200
committerIngo Molnar <mingo@kernel.org>2016-06-14 11:55:15 +0200
commitbe3e7844980352756de4261b276ee2ba5be7a26b (patch)
tree977f32f488649a6c77dcec9190d36fddc3df6b69 /ipc/sem.c
parent726328d92a42b6d4b76078e2659f43067f82c4e8 (diff)
downloadlinux-be3e7844980352756de4261b276ee2ba5be7a26b.tar.gz
linux-be3e7844980352756de4261b276ee2ba5be7a26b.tar.bz2
linux-be3e7844980352756de4261b276ee2ba5be7a26b.zip
locking/spinlock: Update spin_unlock_wait() users
With the modified semantics of spin_unlock_wait() a number of explicit barriers can be removed. Also update the comment for the do_exit() usecase, as that was somewhat stale/obscure. Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'ipc/sem.c')
-rw-r--r--ipc/sem.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/ipc/sem.c b/ipc/sem.c
index 84dff3df11a4..ae72b3cddc8d 100644
--- a/ipc/sem.c
+++ b/ipc/sem.c
@@ -282,7 +282,6 @@ static void sem_wait_array(struct sem_array *sma)
sem = sma->sem_base + i;
spin_unlock_wait(&sem->lock);
}
- smp_acquire__after_ctrl_dep();
}
/*