Skip to content

Commit 0edf128

Browse files
committed
io_uring/uring_cmd: remove dead req_has_async_data() check
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>
1 parent e663da6 commit 0edf128

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
@@ -54,9 +54,6 @@ bool io_uring_try_cancel_uring_cmd(struct io_ring_ctx *ctx,
5454
continue;
5555

5656
if (cmd->flags & IORING_URING_CMD_CANCELABLE) {
57-
/* ->sqe isn't available if no async data */
58-
if (!req_has_async_data(req))
59-
cmd->sqe = NULL;
6057
file->f_op->uring_cmd(cmd, IO_URING_F_CANCEL |
6158
IO_URING_F_COMPLETE_DEFER);
6259
ret = true;

0 commit comments

Comments
 (0)