perf top: Add overwrite fall back
[linux-2.6-microblaze.git] / kernel / taskstats.c
index 4559e91..4e62a4a 100644 (file)
@@ -194,11 +194,7 @@ static int fill_stats_for_pid(pid_t pid, struct taskstats *stats)
 {
        struct task_struct *tsk;
 
-       rcu_read_lock();
-       tsk = find_task_by_vpid(pid);
-       if (tsk)
-               get_task_struct(tsk);
-       rcu_read_unlock();
+       tsk = find_get_task_by_vpid(pid);
        if (!tsk)
                return -ESRCH;
        fill_stats(current_user_ns(), task_active_pid_ns(current), tsk, stats);