]> Git Repo - linux.git/commitdiff
cgroup: remove rcu_read_lock()/rcu_read_unlock() in critical section of spin_lock_irq()
authorRan Tian <[email protected]>
Wed, 23 Nov 2022 14:45:14 +0000 (22:45 +0800)
committerTejun Heo <[email protected]>
Wed, 23 Nov 2022 17:16:38 +0000 (07:16 -1000)
spin_lock_irq() already disable preempt, so remove rcu_read_lock().

Signed-off-by: Ran Tian <[email protected]>
Signed-off-by: Tejun Heo <[email protected]>
kernel/cgroup/cgroup.c

index f2743a476190b85000aa713332fbb7e60b699828..3028f6bc7d11b340f93621c7b008b2814214140b 100644 (file)
@@ -2866,14 +2866,12 @@ int cgroup_migrate(struct task_struct *leader, bool threadgroup,
         * take an rcu_read_lock.
         */
        spin_lock_irq(&css_set_lock);
-       rcu_read_lock();
        task = leader;
        do {
                cgroup_migrate_add_task(task, mgctx);
                if (!threadgroup)
                        break;
        } while_each_thread(leader, task);
-       rcu_read_unlock();
        spin_unlock_irq(&css_set_lock);
 
        return cgroup_migrate_execute(mgctx);
This page took 0.078773 seconds and 4 git commands to generate.