diff options
author | Pavel Begunkov <asml.silence@gmail.com> | 2023-12-01 03:38:52 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2023-12-12 17:42:52 +0300 |
commit | 9b43ef3d52532a0175ed6654618f7db61d390d2e (patch) | |
tree | 6d346b7dce960109e1ee1f501f004bc941c09649 /drivers/block | |
parent | 2394b311c6b5bab225e5307c819eb1ea59de49de (diff) | |
download | linux-9b43ef3d52532a0175ed6654618f7db61d390d2e.tar.xz |
io_uring: don't check iopoll if request completes
IOPOLL request should never return IOU_OK, so the following iopoll
queueing check in io_issue_sqe() after getting IOU_OK doesn't make any
sense as would never turn true. Let's optimise on that and return a bit
earlier. It's also much more resilient to potential bugs from
mischieving iopoll implementations.
Cc: <stable@vger.kernel.org>
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/2f8690e2fa5213a2ff292fac29a7143c036cdd60.1701390926.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/block')
0 files changed, 0 insertions, 0 deletions