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>
Mon, 7 Feb 2022 13:47:39 +0000 (06:47 -0700)
commit44eb33702dadd9ea53b1ccf2b4c43f04ae84e7e4
treee13915c774f3fdb80283e0737b2633537a4e1ee2
parent06d3fc633a1cf2e2dbb181ce3b8c44f344f1418b
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