summaryrefslogtreecommitdiff
path: root/include/linux/io_uring.h
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2020-10-15 18:02:33 +0300
committerJens Axboe <axboe@kernel.dk>2020-10-17 18:25:46 +0300
commit5c3462cfd123b341c9d3c947c1a2bab373f1697f (patch)
tree43a3ae54308d2803ea06875943c62a0adc5a072c /include/linux/io_uring.h
parent1e6fa5216a0e59ef02e8b6b40d553238a3b81d49 (diff)
downloadlinux-5c3462cfd123b341c9d3c947c1a2bab373f1697f.tar.xz
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>
Diffstat (limited to 'include/linux/io_uring.h')
-rw-r--r--include/linux/io_uring.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/io_uring.h b/include/linux/io_uring.h
index 342cc574d5c0..bd3346194bca 100644
--- a/include/linux/io_uring.h
+++ b/include/linux/io_uring.h
@@ -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;