]> git.baikalelectronics.ru Git - kernel.git/commit
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>
Sat, 17 Oct 2020 15:25:46 +0000 (09:25 -0600)
commit36c10655ef75af1836ce4b4b8ead3c34cd04d68b
tree60bdfd7b21e283373c64f1dbb21db2607b617a24
parent2f699a4b4fa6cbe4b3cc816c1daebe6d51e8599d
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