]> rtime.felk.cvut.cz Git - can-eth-gw-linux.git/blobdiff - kernel/pid.c
rcu: treewide: Do not use rcu_read_lock_held when calling rcu_dereference_check
[can-eth-gw-linux.git] / kernel / pid.c
index 57a8346a270e07702e21d7bab15303427bf2fce0..e432057f3b2147873f0de30ad00b16bbaecbedb1 100644 (file)
@@ -405,7 +405,6 @@ struct task_struct *pid_task(struct pid *pid, enum pid_type type)
        if (pid) {
                struct hlist_node *first;
                first = rcu_dereference_check(hlist_first_rcu(&pid->tasks[type]),
-                                             rcu_read_lock_held() ||
                                              lockdep_tasklist_lock_is_held());
                if (first)
                        result = hlist_entry(first, struct task_struct, pids[(type)].node);