io_uring: store io_identity in io_uring_task
authorJens Axboe <axboe@kernel.dk>
Thu, 15 Oct 2020 15:02:33 +0000 (09:02 -0600)
committerJens Axboe <axboe@kernel.dk>
Sat, 17 Oct 2020 15:25:46 +0000 (09:25 -0600)
commit5c3462cfd123b341c9d3c947c1a2bab373f1697f
tree43a3ae54308d2803ea06875943c62a0adc5a072c
parent1e6fa5216a0e59ef02e8b6b40d553238a3b81d49
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>
fs/io_uring.c
include/linux/io_uring.h