]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitaf4848f806909662b4cfcc913141b5c747504127
tree43a3ae54308d2803ea06875943c62a0adc5a072c
parent36c10655ef75af1836ce4b4b8ead3c34cd04d68b
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