]> www.infradead.org Git - users/jedix/linux-maple.git/commit
torture: Add dowarn argument to torture_sched_setaffinity()
authorPaul E. McKenney <paulmck@kernel.org>
Wed, 9 Oct 2024 23:42:37 +0000 (16:42 -0700)
committerUladzislau Rezki (Sony) <urezki@gmail.com>
Sat, 14 Dec 2024 15:38:23 +0000 (16:38 +0100)
commit0203b485d26d5b403ff4ed21e4cc85ba9ec0fe67
tree41a9c48c1e073a4370f998f0d78daf175706c67f
parentfac04efc5c793dccbd07e2d59af9f90b7fc0dca4
torture: Add dowarn argument to torture_sched_setaffinity()

Current use cases of torture_sched_setaffinity() are well served by its
unconditional warning on error.  However, an upcoming use case for a
preemption kthread needs to avoid warnings that might otherwise arise
when that kthread attempted to bind itself to a CPU on its way offline.
This commit therefore adds a dowarn argument that, when false, suppresses
the warning.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Uladzislau Rezki (Sony) <urezki@gmail.com>
include/linux/torture.h
kernel/locking/locktorture.c
kernel/rcu/rcutorture.c
kernel/rcu/update.c