Commit 984035ad authored by Joel Fernandes (Google)'s avatar Joel Fernandes (Google) Committed by Linus Torvalds
Browse files

ipc/sem.c: convert to use built-in RCU list checking

CONFIG_PROVE_RCU_LIST requires list_for_each_entry_rcu() to pass a lockdep
expression if using srcu or locking for protection.  It can only check
regular RCU protection, all other protection needs to be passed as lockdep


Signed-off-by: default avatarJoel Fernandes (Google) <>
Cc: Arnd Bergmann <>
Cc: Bjorn Helgaas <>
Cc: Catalin Marinas <>
Cc: "Gustavo A. R. Silva" <>
Cc: Jonathan Derrick <>
Cc: Keith Busch <>
Cc: Lorenzo Pieralisi <>
Cc: "Paul E. McKenney" <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent c231740d
......@@ -1852,7 +1852,8 @@ static struct sem_undo *__lookup_undo(struct sem_undo_list *ulp, int semid)
struct sem_undo *un;
list_for_each_entry_rcu(un, &ulp->list_proc, list_proc) {
list_for_each_entry_rcu(un, &ulp->list_proc, list_proc,
spin_is_locked(&ulp->lock)) {
if (un->semid == semid)
return un;
Supports Markdown
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