mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
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 <[email protected]> Reviewed-by: Paul E. McKenney <[email protected]> Cc: [email protected] LKML-Reference: <[email protected]> Signed-off-by: Ingo Molnar <[email protected]>
This commit is contained in:
parent
72c6a9870f
commit
05725f7eb4
4 changed files with 13 additions and 11 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
|
||||
|
|
|
|||
Loading…
Reference in a new issue