aboutsummaryrefslogtreecommitdiff
path: root/include/linux/io_uring.h
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2020-10-15 08:46:24 -0600
committerJens Axboe <axboe@kernel.dk>2020-10-17 09:25:46 -0600
commit1e6fa5216a0e59ef02e8b6b40d553238a3b81d49 (patch)
tree60bdfd7b21e283373c64f1dbb21db2607b617a24 /include/linux/io_uring.h
parent98447d65b4a7a59f8ea37dc6e5d743247d9a7b01 (diff)
downloadlinux-stericsson-1e6fa5216a0e59ef02e8b6b40d553238a3b81d49.tar.gz
io_uring: COW io_identity on mismatch
If the io_identity doesn't completely match the task, then create a copy of it and use that. The existing copy remains valid until the last user of it has gone away. This also changes the personality lookup to be indexed by io_identity, instead of creds directly. 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 352aa6bbd36b..342cc574d5c0 100644
--- a/include/linux/io_uring.h
+++ b/include/linux/io_uring.h
@@ -15,6 +15,7 @@ struct io_identity {
struct nsproxy *nsproxy;
struct fs_struct *fs;
unsigned long fsize;
+ refcount_t count;
};
struct io_uring_task {