X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=kernel%2Fpid.c;h=aebb30d9c233df40876afa35ef21cc5c306590a1;hb=7b12887244293eb54acd07c6296b830b3af0f6da;hp=86b296943e5f274c2b4965a73275661a4c6c727e;hpb=51d0f6d1f50349579f007adf5c0b51aaedd93b94;p=~andy%2Flinux diff --git a/kernel/pid.c b/kernel/pid.c index 86b296943e5..aebb30d9c23 100644 --- a/kernel/pid.c +++ b/kernel/pid.c @@ -367,7 +367,9 @@ struct task_struct *pid_task(struct pid *pid, enum pid_type type) struct task_struct *result = NULL; if (pid) { struct hlist_node *first; - first = rcu_dereference_check(pid->tasks[type].first, rcu_read_lock_held() || lockdep_is_held(&tasklist_lock)); + first = rcu_dereference_check(pid->tasks[type].first, + rcu_read_lock_held() || + lockdep_tasklist_lock_is_held()); if (first) result = hlist_entry(first, struct task_struct, pids[(type)].node); }