]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite37af27e8f0ee208d96dd3b116badf737f903c64
treee2f3e0f98abb185d1d52765b6ccd4c16558d6727
parent7435720868e098e048d1bd47d86a8d71c55e5bf2
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