As we are going to make HK_TYPE_KERNEL_NOISE and HK_TYPE_MANAGED_IRQ housekeeping cpumasks run time changeable, extend housekeeping_dereference_check() to cover changes to those cpumasks as well.
Signed-off-by: Waiman Long <[email protected]> --- kernel/sched/isolation.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kernel/sched/isolation.c b/kernel/sched/isolation.c index 1f3f1c83dd12..1647e7b08bac 100644 --- a/kernel/sched/isolation.c +++ b/kernel/sched/isolation.c @@ -38,7 +38,8 @@ EXPORT_SYMBOL_GPL(housekeeping_enabled); static bool housekeeping_dereference_check(enum hk_type type) { - if (IS_ENABLED(CONFIG_LOCKDEP) && type == HK_TYPE_DOMAIN) { + if (IS_ENABLED(CONFIG_LOCKDEP) && + (BIT(type) & (HK_FLAG_DOMAIN | HK_FLAG_KERNEL_NOISE | HK_FLAG_MANAGED_IRQ))) { /* Cpuset isn't even writable yet? */ if (system_state <= SYSTEM_SCHEDULING) return true; -- 2.53.0

