io_uring: COW io_identity on mismatch
authorJens Axboe <axboe@kernel.dk>
Thu, 15 Oct 2020 14:46:24 +0000 (08:46 -0600)
committerJens Axboe <axboe@kernel.dk>
Fri, 16 Oct 2020 13:04:57 +0000 (07:04 -0600)
commite3ba5884064490b69f321221a3a839a6b4f53be6
tree518f02b3009a31829e6cee4dd695db104beac0d8
parent4749c3fc8b9a54f9e204a7b0ad1e425f1863ba3c
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>
fs/io_uring.c
include/linux/io_uring.h