rcutorture: Complain if an ->up_read() is delayed more than 10 seconds
authorPaul E. McKenney <paulmck@kernel.org>
Mon, 10 Feb 2025 14:59:24 +0000 (06:59 -0800)
committerNeeraj Upadhyay (AMD) <neeraj.upadhyay@kernel.org>
Wed, 25 Jun 2025 03:09:01 +0000 (08:39 +0530)
commit62d92c9b87db43cc255411fe2827b9de42fa0523
tree1b085d760c18851ef58042decbc9e3416a43f2c5
parent065de24265155fe662aa9f69a49e0697a5b3b4b5
rcutorture: Complain if an ->up_read() is delayed more than 10 seconds

The down/up SRCU reader testing uses an hrtimer handler to exit the SRCU
read-side critical section.  This might be delayed, and if delayed for
too long, it can prevent the rcutorture run from completing.  This commit
therefore complains if the hrtimer handler is delayed for more than
ten seconds.

[ paulmck, joel: Apply kernel test robot feedback to avoid
false-positive complaint of excessive ->up_read() delays by using
HRTIMER_MODE_HARD ]

Tested-by: kernel test robot <oliver.sang@intel.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Joel Fernandes <joelagnelf@nvidia.com>
Signed-off-by: Neeraj Upadhyay (AMD) <neeraj.upadhyay@kernel.org>
kernel/rcu/rcutorture.c