Skip to content
Commit 91151228 authored by Oleg Nesterov's avatar Oleg Nesterov Committed by Tejun Heo
Browse files

workqueue: swap set_cpus_allowed_ptr() and PF_NO_SETAFFINITY



Move the setting of PF_NO_SETAFFINITY up before set_cpus_allowed()
in create_worker(). Otherwise userland can change ->cpus_allowed
in between.

Signed-off-by: default avatarOleg Nesterov <oleg@redhat.com>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
parent 6ce4eac1
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment