aboutsummaryrefslogtreecommitdiff
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorPaul E. McKenney <[email protected]>2022-01-03 06:07:09 -0800
committerPaul E. McKenney <[email protected]>2022-02-01 17:24:39 -0800
commit6b8646a9d37c6324cf994dbefb75f3eb20b109ab (patch)
tree73ec2997a3895b304525f44f0f593ddcdef0d367 /net/unix/af_unix.c
parent89440d2dad0cc2a781290470cb90402ebba481fc (diff)
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 <[email protected]> Reviewed-by: Neeraj Upadhyay <[email protected]> Reviewed-by: Uladzislau Rezki (Sony) <[email protected]> Reviewed-by: Frederic Weisbecker <[email protected]> Signed-off-by: Paul E. McKenney <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions