]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - ipc/sem.c
ipc: sem_putref() does not need the semaphore lock any more
[karo-tx-linux.git] / ipc / sem.c
index 4b4139f6ad5c83e07a538436f0cc0100e462f061..5cf7b4c093b3092b6038437f4546f836173f3611 100644 (file)
--- a/ipc/sem.c
+++ b/ipc/sem.c
@@ -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_lock_and_putref(sma);
-       sem_unlock(sma, -1);
-       rcu_read_unlock();
+       ipc_rcu_putref(sma);
 }
 
 static inline void sem_rmid(struct ipc_namespace *ns, struct sem_array *s)