scftorture: Block scftorture_invoker() kthreads for offline CPUs
authorPaul E. McKenney <paulmck@kernel.org>
Thu, 2 Jul 2020 21:15:33 +0000 (14:15 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Tue, 25 Aug 2020 01:38:37 +0000 (18:38 -0700)
commita7c072ef26644b632241d549869f10f8d2dd3b5c
treeadd86b114c6cd0b36a5f7626fff3b7fc15203652
parentde77d4da54d10df97d265e7e99112bfc2fef7d4a
scftorture: Block scftorture_invoker() kthreads for offline CPUs

Currently, CPU-hotplug operations might result in all but two
of (say) 100 CPUs being offline, which in turn might result in
false-positive diagnostics due to overload.  This commit therefore
causes scftorture_invoker() kthreads for offline CPUs to loop blocking
for 200 milliseconds at a time, thus continuously adjusting the number
of threads to match the number of online CPUs.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/scftorture.c