mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-14 05:55:17 +00:00
io-wq: shuffle io_worker_handle_work() code
This is a preparation patch, it adds some helpers and makes the next patches cleaner. - extract io_impersonate_work() and io_assign_current_work() - replace @next label with nested do-while - move put_work() right after NULL'ing cur_work. Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
7a743e225b
commit
dc026a73c7
1 changed files with 64 additions and 59 deletions
113
fs/io-wq.c
113
fs/io-wq.c
Loading…
Add table
Add a link
Reference in a new issue