Patch "io_uring/uring_cmd: remove dead req_has_async_data() check" has been added to the 6.13-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    io_uring/uring_cmd: remove dead req_has_async_data() check

to the 6.13-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     io_uring-uring_cmd-remove-dead-req_has_async_data-ch.patch
and it can be found in the queue-6.13 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 05fd738c55c548e8cceb0b736f160569b1872356
Author: Jens Axboe <axboe@xxxxxxxxx>
Date:   Wed Feb 12 14:05:11 2025 -0700

    io_uring/uring_cmd: remove dead req_has_async_data() check
    
    [ Upstream commit 0edf1283a9d1419a2095b4fcdd95c11ac00a191c ]
    
    Any uring_cmd always has async data allocated now, there's no reason to
    check and clear a cached copy of the SQE.
    
    Fixes: d10f19dff56e ("io_uring/uring_cmd: switch to always allocating async data")
    Signed-off-by: Jens Axboe <axboe@xxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/io_uring/uring_cmd.c b/io_uring/uring_cmd.c
index 25cae9f5575be..f43adcc16cf65 100644
--- a/io_uring/uring_cmd.c
+++ b/io_uring/uring_cmd.c
@@ -74,9 +74,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;




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux