diff options
author | Jiri Pirko <jpirko@redhat.com> | 2009-04-14 20:17:16 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-04-15 12:05:25 +0200 |
commit | 05725f7eb4b8acb147c5fc7b91397b1f6bcab00d (patch) | |
tree | 1f22c6bec3429f7ec9ebb8acd25672249e39b380 /ipc | |
parent | 72c6a9870f901045f2464c3dc6ee8914bfdc07aa (diff) | |
download | kernel_samsung_crespo-05725f7eb4b8acb147c5fc7b91397b1f6bcab00d.zip kernel_samsung_crespo-05725f7eb4b8acb147c5fc7b91397b1f6bcab00d.tar.gz kernel_samsung_crespo-05725f7eb4b8acb147c5fc7b91397b1f6bcab00d.tar.bz2 |
rculist: use list_entry_rcu in places where it's appropriate
Use previously introduced list_entry_rcu instead of an open-coded
list_entry + rcu_dereference combination.
Signed-off-by: Jiri Pirko <jpirko@redhat.com>
Reviewed-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: dipankar@in.ibm.com
LKML-Reference: <20090414181715.GA3634@psychotron.englab.brq.redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'ipc')
-rw-r--r-- | ipc/sem.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1290,8 +1290,8 @@ void exit_sem(struct task_struct *tsk) int i; rcu_read_lock(); - un = list_entry(rcu_dereference(ulp->list_proc.next), - struct sem_undo, list_proc); + un = list_entry_rcu(ulp->list_proc.next, + struct sem_undo, list_proc); if (&un->list_proc == &ulp->list_proc) semid = -1; else |