Skip to content

Commit 55e676b

Browse files
axboemehmetb0
authored andcommitted
io_uring/uring_cmd: remove dead req_has_async_data() check
BugLink: https://bugs.launchpad.net/bugs/2104873 [ Upstream commit 0edf128 ] Any uring_cmd always has async data allocated now, there's no reason to check and clear a cached copy of the SQE. Fixes: d10f19d ("io_uring/uring_cmd: switch to always allocating async data") Signed-off-by: Jens Axboe <axboe@kernel.dk> Signed-off-by: Sasha Levin <sashal@kernel.org> Signed-off-by: Noah Wager <noah.wager@canonical.com>
1 parent 81f48e4 commit 55e676b

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

io_uring/uring_cmd.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,6 @@ bool io_uring_try_cancel_uring_cmd(struct io_ring_ctx *ctx,
6565
continue;
6666

6767
if (cmd->flags & IORING_URING_CMD_CANCELABLE) {
68-
/* ->sqe isn't available if no async data */
69-
if (!req_has_async_data(req))
70-
cmd->sqe = NULL;
7168
file->f_op->uring_cmd(cmd, IO_URING_F_CANCEL |
7269
IO_URING_F_COMPLETE_DEFER);
7370
ret = true;

0 commit comments

Comments
 (0)