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>
Fri, 16 Oct 2020 13:04:57 +0000 (07:04 -0600)
commit6fc87e395e00b58d3a9029637fa55896ba7fbf8e
treec43826d270cf9dbaf6ffcc582633b440d85ad745
parent332e5c1af06f669952ec5d817d2ab270898e9bdc
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