Re: [PATCH] io-wq: fix 'task->pi_lock' spin lock protect

2020-10-23 Thread Jens Axboe
On 10/23/20 12:20 AM, qiang.zh...@windriver.com wrote: > From: Zqiang > > The set CPU affinity func 'do_set_cpus_allowed' may be operate > 'task_rq', need add rq lock protect, replace 'pi_lock' spinlock > protect with task_rq_lock func. Thanks, I'm going to fold this one. -- Jens Axboe

[PATCH] io-wq: fix 'task->pi_lock' spin lock protect

2020-10-22 Thread qiang . zhang
From: Zqiang The set CPU affinity func 'do_set_cpus_allowed' may be operate 'task_rq', need add rq lock protect, replace 'pi_lock' spinlock protect with task_rq_lock func. Signed-off-by: Zqiang --- fs/io-wq.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/fs/io-wq.c