mirror of
git://git.yoctoproject.org/linux-yocto.git
synced 2025-10-22 23:13:01 +02:00
io_uring/uring_cmd: remove dead req_has_async_data() check
[ Upstream commit0edf1283a9
] Any uring_cmd always has async data allocated now, there's no reason to check and clear a cached copy of the SQE. Fixes:d10f19dff5
("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>
This commit is contained in:
parent
9d32212b99
commit
98d6ee3e30
|
@ -65,9 +65,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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user