]> git.ipfire.org Git - thirdparty/linux.git/commit
timers/migration: Prevent from lockdep false positive warning
authorFrederic Weisbecker <frederic@kernel.org>
Tue, 23 Dec 2025 14:12:46 +0000 (15:12 +0100)
committerFrederic Weisbecker <frederic@kernel.org>
Tue, 3 Feb 2026 14:23:33 +0000 (15:23 +0100)
commitb5de34ed87f39fc3f6eb7e7df543317e7efb94a8
treeaacef51ae4bdac037179e28a48ac46569fa0fe53
parent53c2f9d1b1151a853542b224d78169f68f919ef1
timers/migration: Prevent from lockdep false positive warning

Testing housekeeping_cpu() will soon require that either the RCU "lock"
is held or the cpuset mutex.

When CPUs get isolated through cpuset, the change is propagated to
timer migration such that isolation is also performed from the migration
tree. However that propagation is done using workqueue which tests if
the target is actually isolated before proceeding.

Lockdep doesn't know that the workqueue caller holds cpuset mutex and
that it waits for the work, making the housekeeping cpumask read safe.

Shut down the future warning by removing this test. It is unecessary
beyond hotplug, the workqueue is already targeted towards isolated CPUs.

Signed-off-by: Frederic Weisbecker <frederic@kernel.org>
Cc: Gabriele Monaco <gmonaco@redhat.com>
kernel/time/timer_migration.c