]> www.infradead.org Git - users/jedix/linux-maple.git/commit
scftorture: Move memory allocation outside of preempt_disable region.
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Fri, 8 Nov 2024 10:39:33 +0000 (11:39 +0100)
committerPaul E. McKenney <paulmck@kernel.org>
Sat, 9 Nov 2024 17:00:46 +0000 (09:00 -0800)
commit64bdaf963c3ac04a67c8491bea2d0ecfc7d5da96
tree891d61eae87d1f23bed6470cc132f42d15ee1588
parent43082cd579fbeea2ed90982f1c875bbdb2bcad2e
scftorture: Move memory allocation outside of preempt_disable region.

Memory allocations can not happen within regions with explicit disabled
preemption PREEMPT_RT. The problem is that the locking structures
underneath are sleeping locks.

Move the memory allocation outside of the preempt-disabled section. Keep
the GFP_ATOMIC for the allocation to behave like a "ememergncy
allocation".

Tested-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Reviewed-by: Boqun Feng <boqun.feng@gmail.com>
Tested-by: Boqun Feng <boqun.feng@gmail.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/scftorture.c