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 @@ -1297,9 +1297,7 @@ static void rmdir_all_sub(void)
12971297 kfree (rdtgrp );
12981298 }
12991299 /* Notify online CPUs to update per cpu storage and PQR_ASSOC MSR */
1300- get_online_cpus ();
13011300 update_closid_rmid (cpu_online_mask , & rdtgroup_default );
1302- put_online_cpus ();
13031301
13041302 kernfs_remove (kn_info );
13051303 kernfs_remove (kn_mongrp );
@@ -1310,18 +1308,20 @@ static void rdt_kill_sb(struct super_block *sb)
13101308{
13111309 struct rdt_resource * r ;
13121310
1311+ cpus_read_lock ();
13131312 mutex_lock (& rdtgroup_mutex );
13141313
13151314 /*Put everything back to default values. */
13161315 for_each_alloc_enabled_rdt_resource (r )
13171316 reset_all_ctrls (r );
13181317 cdp_disable ();
13191318 rmdir_all_sub ();
1320- static_branch_disable (& rdt_alloc_enable_key );
1321- static_branch_disable (& rdt_mon_enable_key );
1322- static_branch_disable (& rdt_enable_key );
1319+ static_branch_disable_cpuslocked (& rdt_alloc_enable_key );
1320+ static_branch_disable_cpuslocked (& rdt_mon_enable_key );
1321+ static_branch_disable_cpuslocked (& rdt_enable_key );
13231322 kernfs_kill_sb (sb );
13241323 mutex_unlock (& rdtgroup_mutex );
1324+ cpus_read_unlock ();
13251325}
13261326
13271327static struct file_system_type rdt_fs_type = {
You can’t perform that action at this time.
0 commit comments