summaryrefslogtreecommitdiff
path: root/kernel/pid.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2011-10-01 14:21:36 +0200
committerIngo Molnar <mingo@elte.hu>2011-10-01 14:21:36 +0200
commit048b718029033af117870d3da47da12995be14a3 (patch)
treeb3d4bf5219cd6543c35cb79d1aa08ae98cf2a8af /kernel/pid.c
parent47ea91b4052d9e94b9dca5d7a3d947fbebd07ba9 (diff)
parentafe24b122eb6edb5f1cb942570ac8d766105c7fc (diff)
Merge branch 'rcu/next' of git://github.com/paulmckrcu/linux into core/rcu
Diffstat (limited to 'kernel/pid.c')
-rw-r--r--kernel/pid.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/kernel/pid.c b/kernel/pid.c
index e432057f3b21..8cafe7e72ad2 100644
--- a/kernel/pid.c
+++ b/kernel/pid.c
@@ -418,7 +418,9 @@ EXPORT_SYMBOL(pid_task);
*/
struct task_struct *find_task_by_pid_ns(pid_t nr, struct pid_namespace *ns)
{
- rcu_lockdep_assert(rcu_read_lock_held());
+ rcu_lockdep_assert(rcu_read_lock_held(),
+ "find_task_by_pid_ns() needs rcu_read_lock()"
+ " protection");
return pid_task(find_pid_ns(nr, ns), PIDTYPE_PID);
}