Merge branch 'locking/urgent' into locking/core, to pick up fixes
authorIngo Molnar <mingo@kernel.org>
Thu, 22 Sep 2016 13:21:48 +0000 (15:21 +0200)
committerIngo Molnar <mingo@kernel.org>
Thu, 22 Sep 2016 13:21:48 +0000 (15:21 +0200)
Signed-off-by: Ingo Molnar <mingo@kernel.org>
1  2 
kernel/cgroup.c

diff --combined kernel/cgroup.c
@@@ -5606,12 -5606,6 +5606,12 @@@ int __init cgroup_init(void
        BUG_ON(cgroup_init_cftypes(NULL, cgroup_dfl_base_files));
        BUG_ON(cgroup_init_cftypes(NULL, cgroup_legacy_base_files));
  
 +      /*
 +       * The latency of the synchronize_sched() is too high for cgroups,
 +       * avoid it at the cost of forcing all readers into the slow path.
 +       */
 +      rcu_sync_enter_start(&cgroup_threadgroup_rwsem.rss);
 +
        get_user_ns(init_cgroup_ns.user_ns);
  
        mutex_lock(&cgroup_mutex);
@@@ -6276,6 -6270,12 +6276,12 @@@ void cgroup_sk_alloc(struct sock_cgroup
        if (cgroup_sk_alloc_disabled)
                return;
  
+       /* Socket clone path */
+       if (skcd->val) {
+               cgroup_get(sock_cgroup_ptr(skcd));
+               return;
+       }
        rcu_read_lock();
  
        while (true) {