Searched hist:"6 b8646a9d37c6324cf994dbefb75f3eb20b109ab" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/kernel/ |
H A D | torture.c | diff 6b8646a9d37c6324cf994dbefb75f3eb20b109ab Mon Jan 03 08:07:09 CST 2022 Paul E. McKenney <paulmck@kernel.org> torture: Wake up kthreads after storing task_struct pointer
Currently, _torture_create_kthread() uses kthread_run() to create torture-test kthreads, which means that the resulting task_struct pointer is stored after the newly created kthread has been marked runnable. This in turn can cause spurious failure of checks for code being run by a particular kthread. This commit therefore changes _torture_create_kthread() to use kthread_create(), then to do an explicit wake_up_process() after the task_struct pointer has been stored.
Reported-by: Frederic Weisbecker <frederic@kernel.org> Reviewed-by: Neeraj Upadhyay <quic_neeraju@quicinc.com> Reviewed-by: Uladzislau Rezki (Sony) <urezki@gmail.com> Reviewed-by: Frederic Weisbecker <frederic@kernel.org> Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
|