]> www.infradead.org Git - users/jedix/linux-maple.git/commit
io_uring: avoid ring quiesce while registering restrictions and enabling rings
authorUsama Arif <usama.arif@bytedance.com>
Fri, 4 Feb 2022 14:51:16 +0000 (14:51 +0000)
committerJens Axboe <axboe@kernel.dk>
Thu, 10 Mar 2022 13:32:49 +0000 (06:32 -0700)
commitff16cfcfdaafa3c4287be92c6944fb8ea6dc75d1
treea206b6f2c865c031510958b4d1e252b60f37dfc0
parentc75312dd592b31427caa88170b61fdc3ae5b2891
io_uring: avoid ring quiesce while registering restrictions and enabling rings

IORING_SETUP_R_DISABLED prevents submitting requests and so there will be
no requests until IORING_REGISTER_ENABLE_RINGS is called. And
IORING_REGISTER_RESTRICTIONS works only before
IORING_REGISTER_ENABLE_RINGS is called. Hence ring quiesce is not needed
for these opcodes.

Signed-off-by: Usama Arif <usama.arif@bytedance.com>
Link: https://lore.kernel.org/r/20220204145117.1186568-5-usama.arif@bytedance.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c