commit | 00ddff431a458bbf143ea7c4c42d022676da1b17 | [log] [tgz] |
---|---|---|
author | Jens Axboe <axboe@kernel.dk> | Sun Mar 21 07:06:56 2021 -0600 |
committer | Jens Axboe <axboe@kernel.dk> | Sun Mar 21 09:41:14 2021 -0600 |
tree | a2c094c16df92bbe8c2040d7346541d019b1b2be | |
parent | 4db4b1a0d1779dc159f7b87feb97030ec0b12597 [diff] |
io-wq: ensure task is running before processing task_work Mark the current task as running if we need to run task_work from the io-wq threads as part of work handling. If that is the case, then return as such so that the caller can appropriately loop back and reset if it was part of a going-to-sleep flush. Fixes: 3bfe6106693b ("io-wq: fork worker threads from original task") Signed-off-by: Jens Axboe <axboe@kernel.dk>