summaryrefslogtreecommitdiff
path: root/fs/io_uring.c
diff options
context:
space:
mode:
authorPavel Begunkov <asml.silence@gmail.com>2021-04-01 15:44:02 +0100
committerJens Axboe <axboe@kernel.dk>2021-04-11 19:30:35 -0600
commitf4f7d21ce46474128934caeb80dfb1e5396b596e (patch)
treeffe56c2fd3a6b8ab0e8ba81d1dfccaf781fde3f2 /fs/io_uring.c
parent9a321c98490c70653a4f0a10b28c45edbcf7a93d (diff)
downloadlwn-f4f7d21ce46474128934caeb80dfb1e5396b596e.tar.gz
lwn-f4f7d21ce46474128934caeb80dfb1e5396b596e.zip
io_uring: don't quiesce intial files register
There is no reason why we would want to fully quiesce ring on IORING_REGISTER_FILES, if it's already registered we fail. Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Link: https://lore.kernel.org/r/563bb8060bb2d3efbc32fce6101678281c574d2a.1617287883.git.asml.silence@gmail.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/io_uring.c')
-rw-r--r--fs/io_uring.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/io_uring.c b/fs/io_uring.c
index ede9d01efb3b..4700de36a8cc 100644
--- a/fs/io_uring.c
+++ b/fs/io_uring.c
@@ -9815,6 +9815,7 @@ static int io_register_enable_rings(struct io_ring_ctx *ctx)
static bool io_register_op_must_quiesce(int op)
{
switch (op) {
+ case IORING_REGISTER_FILES:
case IORING_UNREGISTER_FILES:
case IORING_REGISTER_FILES_UPDATE:
case IORING_REGISTER_PROBE: