diff options
author | Usama Arif <usama.arif@bytedance.com> | 2022-02-04 14:51:16 +0000 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-03-10 06:32:49 -0700 |
commit | ff16cfcfdaafa3c4287be92c6944fb8ea6dc75d1 (patch) | |
tree | a206b6f2c865c031510958b4d1e252b60f37dfc0 /fs/io_uring.c | |
parent | c75312dd592b31427caa88170b61fdc3ae5b2891 (diff) | |
download | linux-ff16cfcfdaafa3c4287be92c6944fb8ea6dc75d1.tar.bz2 |
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>
Diffstat (limited to 'fs/io_uring.c')
-rw-r--r-- | fs/io_uring.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/io_uring.c b/fs/io_uring.c index 961866b24b4f..6ff9f67e2a1e 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -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: |