io_uring: fuse fallback_node and normal tw node
Now as both normal and fallback paths use llist, just keep one node head in struct io_task_work and kill off ->fallback_node. Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Link: https://lore.kernel.org/r/d04ebde409f7b162fe247b361b4486b193293e46.1656153285.git.asml.silence@gmail.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
37c7bd31b3
commit
3218e5d32d
2 changed files with 3 additions and 7 deletions
|
|
@ -427,10 +427,7 @@ enum {
|
|||
typedef void (*io_req_tw_func_t)(struct io_kiocb *req, bool *locked);
|
||||
|
||||
struct io_task_work {
|
||||
union {
|
||||
struct llist_node node;
|
||||
struct llist_node fallback_node;
|
||||
};
|
||||
struct llist_node node;
|
||||
io_req_tw_func_t func;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue