diff options
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/futex.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/futex.c b/kernel/futex.c index 9d260e838cf..ca8ef11feb6 100644 --- a/kernel/futex.c +++ b/kernel/futex.c | |||
@@ -389,7 +389,7 @@ static struct task_struct * futex_find_get_task(pid_t pid) | |||
389 | { | 389 | { |
390 | struct task_struct *p; | 390 | struct task_struct *p; |
391 | 391 | ||
392 | read_lock(&tasklist_lock); | 392 | rcu_read_lock(); |
393 | p = find_task_by_pid(pid); | 393 | p = find_task_by_pid(pid); |
394 | if (!p) | 394 | if (!p) |
395 | goto out_unlock; | 395 | goto out_unlock; |
@@ -403,7 +403,7 @@ static struct task_struct * futex_find_get_task(pid_t pid) | |||
403 | } | 403 | } |
404 | get_task_struct(p); | 404 | get_task_struct(p); |
405 | out_unlock: | 405 | out_unlock: |
406 | read_unlock(&tasklist_lock); | 406 | rcu_read_unlock(); |
407 | 407 | ||
408 | return p; | 408 | return p; |
409 | } | 409 | } |