summaryrefslogtreecommitdiffstats
path: root/io_uring/io_uring.c
diff options
context:
space:
mode:
authorQuanfa Fu <quanfafu@gmail.com>2023-01-15 15:15:19 +0800
committerJens Axboe <axboe@kernel.dk>2023-01-29 15:17:40 -0700
commit88b80534f60f5ddf5f42218b280e0370f95eae78 (patch)
tree8717a3486de6024d89fb6940f4d5d922657bb122 /io_uring/io_uring.c
parentc3f4d39ee4bc06f975ff45012398342ff276eb69 (diff)
downloadlinux-88b80534f60f5ddf5f42218b280e0370f95eae78.tar.gz
linux-88b80534f60f5ddf5f42218b280e0370f95eae78.tar.bz2
linux-88b80534f60f5ddf5f42218b280e0370f95eae78.zip
io_uring: make io_sqpoll_wait_sq return void
Change the return type to void since it always return 0, and no need to do the checking in syscall io_uring_enter. Signed-off-by: Quanfa Fu <quanfafu@gmail.com> Link: https://lore.kernel.org/r/20230115071519.554282-1-quanfafu@gmail.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring/io_uring.c')
-rw-r--r--io_uring/io_uring.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/io_uring/io_uring.c b/io_uring/io_uring.c
index 653361746203..8fddc010ffe2 100644
--- a/io_uring/io_uring.c
+++ b/io_uring/io_uring.c
@@ -3412,11 +3412,9 @@ SYSCALL_DEFINE6(io_uring_enter, unsigned int, fd, u32, to_submit,
}
if (flags & IORING_ENTER_SQ_WAKEUP)
wake_up(&ctx->sq_data->wait);
- if (flags & IORING_ENTER_SQ_WAIT) {
- ret = io_sqpoll_wait_sq(ctx);
- if (ret)
- goto out;
- }
+ if (flags & IORING_ENTER_SQ_WAIT)
+ io_sqpoll_wait_sq(ctx);
+
ret = to_submit;
} else if (to_submit) {
ret = io_uring_add_tctx_node(ctx);