Skip to content

Commit 1c6492d

Browse files
committed
Merge tag 'io_uring-6.3-2023-04-14' of git://git.kernel.dk/linux
Pull io_uring fix from Jens Axboe: "Just a small tweak to when task_work needs redirection, marked for stable as well" * tag 'io_uring-6.3-2023-04-14' of git://git.kernel.dk/linux: io_uring: complete request via task work in case of DEFER_TASKRUN
2 parents 7a934f4 + 860e1c7 commit 1c6492d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

io_uring/io_uring.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -998,7 +998,7 @@ static void __io_req_complete_post(struct io_kiocb *req)
998998

999999
void io_req_complete_post(struct io_kiocb *req, unsigned issue_flags)
10001000
{
1001-
if (req->ctx->task_complete && (issue_flags & IO_URING_F_IOWQ)) {
1001+
if (req->ctx->task_complete && req->ctx->submitter_task != current) {
10021002
req->io_task_work.func = io_req_task_complete;
10031003
io_req_task_work_add(req);
10041004
} else if (!(issue_flags & IO_URING_F_UNLOCKED) ||

0 commit comments

Comments
 (0)