perf top: Add overwrite fall back
[linux-2.6-microblaze.git] / kernel / futex.c
index 7f719d1..1f450e0 100644 (file)
@@ -862,24 +862,6 @@ static void put_pi_state(struct futex_pi_state *pi_state)
        }
 }
 
-/*
- * Look up the task based on what TID userspace gave us.
- * We dont trust it.
- */
-static struct task_struct *futex_find_get_task(pid_t pid)
-{
-       struct task_struct *p;
-
-       rcu_read_lock();
-       p = find_task_by_vpid(pid);
-       if (p)
-               get_task_struct(p);
-
-       rcu_read_unlock();
-
-       return p;
-}
-
 #ifdef CONFIG_FUTEX_PI
 
 /*
@@ -1183,7 +1165,7 @@ static int attach_to_pi_owner(u32 uval, union futex_key *key,
         */
        if (!pid)
                return -ESRCH;
-       p = futex_find_get_task(pid);
+       p = find_get_task_by_vpid(pid);
        if (!p)
                return -ESRCH;