mirror of
https://github.com/torvalds/linux.git
synced 2026-09-25 21:21:09 -04:00
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
This commit is contained in:
@@ -11021,6 +11021,8 @@ static bool io_register_op_must_quiesce(int op)
|
||||
case IORING_REGISTER_PROBE:
|
||||
case IORING_REGISTER_PERSONALITY:
|
||||
case IORING_UNREGISTER_PERSONALITY:
|
||||
case IORING_REGISTER_ENABLE_RINGS:
|
||||
case IORING_REGISTER_RESTRICTIONS:
|
||||
case IORING_REGISTER_FILES2:
|
||||
case IORING_REGISTER_FILES_UPDATE2:
|
||||
case IORING_REGISTER_BUFFERS2:
|
||||
|
||||
Reference in New Issue
Block a user