File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1364,9 +1364,7 @@ static void rmdir_all_sub(void)
13641364 kfree (rdtgrp );
13651365 }
13661366 /* Notify online CPUs to update per cpu storage and PQR_ASSOC MSR */
1367- get_online_cpus ();
13681367 update_closid_rmid (cpu_online_mask , & rdtgroup_default );
1369- put_online_cpus ();
13701368
13711369 kernfs_remove (kn_info );
13721370 kernfs_remove (kn_mongrp );
@@ -1377,18 +1375,20 @@ static void rdt_kill_sb(struct super_block *sb)
13771375{
13781376 struct rdt_resource * r ;
13791377
1378+ cpus_read_lock ();
13801379 mutex_lock (& rdtgroup_mutex );
13811380
13821381 /*Put everything back to default values. */
13831382 for_each_alloc_enabled_rdt_resource (r )
13841383 reset_all_ctrls (r );
13851384 cdp_disable ();
13861385 rmdir_all_sub ();
1387- static_branch_disable (& rdt_alloc_enable_key );
1388- static_branch_disable (& rdt_mon_enable_key );
1389- static_branch_disable (& rdt_enable_key );
1386+ static_branch_disable_cpuslocked (& rdt_alloc_enable_key );
1387+ static_branch_disable_cpuslocked (& rdt_mon_enable_key );
1388+ static_branch_disable_cpuslocked (& rdt_enable_key );
13901389 kernfs_kill_sb (sb );
13911390 mutex_unlock (& rdtgroup_mutex );
1391+ cpus_read_unlock ();
13921392}
13931393
13941394static struct file_system_type rdt_fs_type = {
You can’t perform that action at this time.
0 commit comments