• T
    x86/intel_rdt: Prevent deadlock against hotplug lock · a2584e1d
    Thomas Gleixner 提交于
    The cpu online/offline callbacks of intel_rdt lock rdtgroup_mutex nested
    inside of cpu hotplug lock. rdtgroup_cpus_write() does it in reverse order.
    
    Remove the get/put_online_cpus() calls from rdtgroup_cpus_write(). This is
    safe against cpu hotplug as the resource group cpumasks are protected by
    rdtgroup_mutex.
    
    Found by review, but should have been found if authors would have bothered
    to test cpu hotplug with lockdep enabled.
    Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
    Cc: Shaohua Li <shli@fb.com>
    Cc: Fenghua Yu <fenghua.yu@intel.com>
    Cc: Tony Luck <tony.luck@intel.com>
    a2584e1d
intel_rdt_rdtgroup.c 22.9 KB