]> 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)
commit7435720868e098e048d1bd47d86a8d71c55e5bf2
tree43a3ae54308d2803ea06875943c62a0adc5a072c
parente4cef3e32c714ac60e025fd96275c7b830d6d75c
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