forked from luck/tmp_suning_uos_patched
kernel: freezer should treat PF_IO_WORKER like PF_KTHREAD for freezing
[ Upstream commit 15b2219facadec583c24523eed40fa45865f859f ] Don't send fake signals to PF_IO_WORKER threads, they don't accept signals. Just treat them like kthreads in this regard, all they need is a wakeup as no forced kernel/user transition is needed. Suggested-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Jens Axboe <axboe@kernel.dk> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
540a1ebf3c
commit
7f6518ec6e
|
@ -134,7 +134,7 @@ bool freeze_task(struct task_struct *p)
|
|||
return false;
|
||||
}
|
||||
|
||||
if (!(p->flags & PF_KTHREAD))
|
||||
if (!(p->flags & (PF_KTHREAD | PF_IO_WORKER)))
|
||||
fake_signal_wake_up(p);
|
||||
else
|
||||
wake_up_state(p, TASK_INTERRUPTIBLE);
|
||||
|
|
Loading…
Reference in New Issue
Block a user