File tree 1 file changed +5
-5
lines changed
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)
1364
1364
kfree (rdtgrp );
1365
1365
}
1366
1366
/* Notify online CPUs to update per cpu storage and PQR_ASSOC MSR */
1367
- get_online_cpus ();
1368
1367
update_closid_rmid (cpu_online_mask , & rdtgroup_default );
1369
- put_online_cpus ();
1370
1368
1371
1369
kernfs_remove (kn_info );
1372
1370
kernfs_remove (kn_mongrp );
@@ -1377,18 +1375,20 @@ static void rdt_kill_sb(struct super_block *sb)
1377
1375
{
1378
1376
struct rdt_resource * r ;
1379
1377
1378
+ cpus_read_lock ();
1380
1379
mutex_lock (& rdtgroup_mutex );
1381
1380
1382
1381
/*Put everything back to default values. */
1383
1382
for_each_alloc_enabled_rdt_resource (r )
1384
1383
reset_all_ctrls (r );
1385
1384
cdp_disable ();
1386
1385
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 );
1390
1389
kernfs_kill_sb (sb );
1391
1390
mutex_unlock (& rdtgroup_mutex );
1391
+ cpus_read_unlock ();
1392
1392
}
1393
1393
1394
1394
static struct file_system_type rdt_fs_type = {
You can’t perform that action at this time.
0 commit comments