summaryrefslogtreecommitdiffstats
path: root/arch/m68k
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2021-02-17 08:48:00 -0700
committerJens Axboe <axboe@kernel.dk>2021-02-21 17:25:22 -0700
commit4727dc20e0422211a0e0c72b1ace4ed6096df8a6 (patch)
tree84f3eaae93034140ffce50ac4816171e679d7c3f /arch/m68k
parent958234d5ec9321445500dc5e69dfefb405b3d82c (diff)
downloadlinux-4727dc20e0422211a0e0c72b1ace4ed6096df8a6.tar.gz
linux-4727dc20e0422211a0e0c72b1ace4ed6096df8a6.tar.bz2
linux-4727dc20e0422211a0e0c72b1ace4ed6096df8a6.zip
arch: setup PF_IO_WORKER threads like PF_KTHREAD
PF_IO_WORKER are kernel threads too, but they aren't PF_KTHREAD in the sense that we don't assign ->set_child_tid with our own structure. Just ensure that every arch sets up the PF_IO_WORKER threads like kthreads in the arch implementation of copy_thread(). Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'arch/m68k')
-rw-r--r--arch/m68k/kernel/process.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/m68k/kernel/process.c b/arch/m68k/kernel/process.c
index 08359a6e058f..da83cc83e791 100644
--- a/arch/m68k/kernel/process.c
+++ b/arch/m68k/kernel/process.c
@@ -157,7 +157,7 @@ int copy_thread(unsigned long clone_flags, unsigned long usp, unsigned long arg,
*/
p->thread.fs = get_fs().seg;
- if (unlikely(p->flags & PF_KTHREAD)) {
+ if (unlikely(p->flags & (PF_KTHREAD | PF_IO_WORKER))) {
/* kernel thread */
memset(frame, 0, sizeof(struct fork_frame));
frame->regs.sr = PS_S;