mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
io_uring: store io_identity in io_uring_task
This is, by definition, a per-task structure. So store it in the task context, instead of doing carrying it in each io_kiocb. We're being a bit inefficient if members have changed, as that requires an alloc and copy of a new io_identity struct. The next patch will fix that up. Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
1e6fa5216a
commit
5c3462cfd1
2 changed files with 12 additions and 10 deletions
|
@ -24,6 +24,7 @@ struct io_uring_task {
|
|||
struct wait_queue_head wait;
|
||||
struct file *last;
|
||||
atomic_long_t req_issue;
|
||||
struct io_identity identity;
|
||||
|
||||
/* completion side */
|
||||
bool in_idle ____cacheline_aligned_in_smp;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue