Commit 0edf1283 authored by Jens Axboe's avatar Jens Axboe
Browse files

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: d10f19df ("io_uring/uring_cmd: switch to always allocating async data")
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent e663da62
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -54,9 +54,6 @@ bool io_uring_try_cancel_uring_cmd(struct io_ring_ctx *ctx,
			continue;

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