]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blobdiff - kernel/torture.c
rcu: Don't deboost before reporting expedited quiescent state
[mirror_ubuntu-jammy-kernel.git] / kernel / torture.c
index 0a315c387bedb25a630a61577d4e7b01471d1466..bb8f411c974b8d51297708f51dedc41c46c11757 100644 (file)
@@ -521,11 +521,11 @@ static void torture_shuffle_tasks(void)
        struct shuffle_task *stp;
 
        cpumask_setall(shuffle_tmp_mask);
-       get_online_cpus();
+       cpus_read_lock();
 
        /* No point in shuffling if there is only one online CPU (ex: UP) */
        if (num_online_cpus() == 1) {
-               put_online_cpus();
+               cpus_read_unlock();
                return;
        }
 
@@ -541,7 +541,7 @@ static void torture_shuffle_tasks(void)
                set_cpus_allowed_ptr(stp->st_t, shuffle_tmp_mask);
        mutex_unlock(&shuffle_task_mutex);
 
-       put_online_cpus();
+       cpus_read_unlock();
 }
 
 /* Shuffle tasks across CPUs, with the intent of allowing each CPU in the