From: Daniel Wagner <daniel.wagner@xxxxxxxxxxxx> Inside task_cls_classid(), a rcu_read_lock() is already taken. Signed-off-by: Daniel Wagner <daniel.wagner@xxxxxxxxxxxx> CC: Thomas Graf <tgraf@xxxxxxx> CC: Tejun Heo <tj@xxxxxxxxxx> CC: Li Zefan <lizefan@xxxxxxxxxx> --- net/core/sock.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/net/core/sock.c b/net/core/sock.c index 75c4b72..50c9d02 100644 --- a/net/core/sock.c +++ b/net/core/sock.c @@ -1180,9 +1180,7 @@ void sock_update_classid(struct sock *sk) { u32 classid; - rcu_read_lock(); /* doing current task, which cannot vanish. */ classid = task_cls_classid(current); - rcu_read_unlock(); if (classid && classid != sk->sk_classid) sk->sk_classid = classid; } -- 1.7.10.130.g36e6c -- To unsubscribe from this list: send the line "unsubscribe cgroups" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html