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>
Fri, 16 Oct 2020 13:04:57 +0000 (07:04 -0600)
commit332e5c1af06f669952ec5d817d2ab270898e9bdc
tree88f6a057b30b35574c6878599103acdcc8422a07
parente3ba5884064490b69f321221a3a839a6b4f53be6
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