workqueue: wq_watchdog_touch is always called with valid CPU
[ Upstream commit18e24deb1c] Warn in the case it is called with cpu == -1. This does not appear to happen anywhere. Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Reviewed-by: Paul E. McKenney <paulmck@kernel.org> Signed-off-by: Tejun Heo <tj@kernel.org> Stable-dep-of:98f887f820("workqueue: Improve scalability of workqueue watchdog touch") Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
43568d917d
commit
4b88865d8b
@@ -7588,6 +7588,8 @@ notrace void wq_watchdog_touch(int cpu)
|
||||
{
|
||||
if (cpu >= 0)
|
||||
per_cpu(wq_watchdog_touched_cpu, cpu) = jiffies;
|
||||
else
|
||||
WARN_ONCE(1, "%s should be called with valid CPU", __func__);
|
||||
|
||||
wq_watchdog_touched = jiffies;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user