Commit 73b29505 authored by Linus Torvalds's avatar Linus Torvalds
Browse files

ipc: sem_putref() does not need the semaphore lock any more

ipc_rcu_putref() uses atomics for the refcount, and the games to lock
and unlock the semaphore just to try to keep the reference counting
working are no longer useful.
Acked-by: default avatarDavidlohr Bueso <>
Cc: Rik van Riel <>
Cc: Al Viro <>
Signed-off-by: default avatarLinus Torvalds <>
parent 6d49dab8
......@@ -329,9 +329,7 @@ static inline void sem_lock_and_putref(struct sem_array *sma)
static inline void sem_putref(struct sem_array *sma)
sem_unlock(sma, -1);
static inline void sem_rmid(struct ipc_namespace *ns, struct sem_array *s)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment