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:
Jens Axboe 2020-10-15 09:02:33 -06:00
parent 1e6fa5216a
commit 5c3462cfd1
2 changed files with 12 additions and 10 deletions

View file

@ -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;