io_uring: assign new io_identity for task if members have changed
authorJens Axboe <axboe@kernel.dk>
Thu, 15 Oct 2020 23:38:03 +0000 (17:38 -0600)
committerJens Axboe <axboe@kernel.dk>
Sat, 17 Oct 2020 15:25:46 +0000 (09:25 -0600)
commit500a373d731ac506612db12631ec21295c1ff360
treee2f3e0f98abb185d1d52765b6ccd4c16558d6727
parent5c3462cfd123b341c9d3c947c1a2bab373f1697f
io_uring: assign new io_identity for task if members have changed

This avoids doing a copy for each new async IO, if some parts of the
io_identity has changed. We avoid reference counting for the normal
fast path of nothing ever changing.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c
include/linux/io_uring.h