]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: Don't require reinitable percpu_ref
authorMichal Koutný <mkoutny@suse.com>
Fri, 15 Jul 2022 17:45:01 +0000 (19:45 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 25 Jul 2022 00:39:18 +0000 (18:39 -0600)
commit48904229928d941ce1db181b991948387ab463cd
tree62cb6262d081bafbb5214d8bd5842adf05172242
parent9b0fc3c054ff2eb13753104884f1045b5bb3a627
io_uring: Don't require reinitable percpu_ref

The commit 8bb649ee1da3 ("io_uring: remove ring quiesce for
io_uring_register") removed the worklow relying on reinit/resurrection
of the percpu_ref, hence, initialization with that requested is a relic.

This is based on code review, this causes no real bug (and theoretically
can't). Technically it's a revert of commit 214828962dea ("io_uring:
initialize percpu refcounters using PERCU_REF_ALLOW_REINIT") but since
the flag omission is now justified, I'm not making this a revert.

Fixes: 8bb649ee1da3 ("io_uring: remove ring quiesce for io_uring_register")
Signed-off-by: Michal Koutný <mkoutny@suse.com>
Acked-by: Roman Gushchin <roman.gushchin@linux.dev>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/io_uring.c