x86/resctrl: Remove lockdep annotation that triggers false positive
authorJames Morse <james.morse@arm.com>
Wed, 21 Feb 2024 12:23:06 +0000 (12:23 +0000)
committerBorislav Petkov (AMD) <bp@alien8.de>
Thu, 22 Feb 2024 15:15:38 +0000 (16:15 +0100)
commitc0d848fcb09d80a5f48b99f85e448185125ef59f
treed8125cea13b3c69311040de1e2c998f72c93e31d
parentfb700810d30b9eb333a7bf447012e1158e35c62f
x86/resctrl: Remove lockdep annotation that triggers false positive

get_domain_from_cpu() walks a list of domains to find the one that
contains the specified CPU. This needs to be protected against races
with CPU hotplug when the list is modified. It has recently gained
a lockdep annotation to check this.

The lockdep annotation causes false positives when called via IPI as the
lock is held, but by another process. Remove it.

  [ bp: Refresh it ontop of x86/cache. ]

Fixes: fb700810d30b ("x86/resctrl: Separate arch and fs resctrl locks")
Reported-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: James Morse <james.morse@arm.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/all/ZdUSwOM9UUNpw84Y@agluck-desk3
arch/x86/kernel/cpu/resctrl/core.c