Skip to content

Commit

Permalink
io-wq: fork worker threads from original task
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jens Axboe committed Feb 22, 2021
1 parent 6fb8f43 commit 3bfe610
Show file tree
Hide file tree
Showing 4 changed files with 116 additions and 198 deletions.
Loading

0 comments on commit 3bfe610

Please sign in to comment.