]> git.baikalelectronics.ru Git - kernel.git/commit
io-wq: fork worker threads from original task
authorJens Axboe <axboe@kernel.dk>
Tue, 16 Feb 2021 21:15:30 +0000 (14:15 -0700)
committerJens Axboe <axboe@kernel.dk>
Mon, 22 Feb 2021 00:25:22 +0000 (17:25 -0700)
commit97e578ab4f4cd1b0e26d1dc2d057f642e51fbd1c
treeaba6783414bf41a0274cc07c5cf4d11912de3ba6
parentadf6461ce36573350744e3be4a3124475ea70de2
io-wq: fork worker threads from original task

Instead of using regular kthread kernel threads, create kernel threads
that are like a real thread that the task would create. This ensures that
we get all the context that we need, without having to carry that state
around. This greatly reduces the code complexity, and the risk of missing
state for a given request type.

With the move away from kthread, we can also dump everything related to
assigned state to the new threads.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io-wq.c
fs/io-wq.h
fs/io_uring.c
include/linux/sched.h