]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: rework io_uring_enter to simplify return value
authorDylan Yudaken <dylany@fb.com>
Thu, 21 Apr 2022 09:13:42 +0000 (02:13 -0700)
committerJens Axboe <axboe@kernel.dk>
Mon, 25 Apr 2022 00:18:18 +0000 (18:18 -0600)
commit39f5d65db92c1ab92d46eb4843ac51421d9f6d6c
tree6fd7dbdff551cddfb0f36ea9c13355a4cbd83a1b
parent99452f25f71a24ca8dfdce3bf51315a59ff57df9
io_uring: rework io_uring_enter to simplify return value

io_uring_enter returns the count submitted preferrably over an error
code. In some code paths this check is not required, so reorganise the
code so that the check is only done as needed.
This is also a prep for returning error codes only in waiting scenarios.

Signed-off-by: Dylan Yudaken <dylany@fb.com>
Link: https://lore.kernel.org/r/20220421091345.2115755-4-dylany@fb.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c