Skip to content

Commit 761c61c

Browse files
committed
io_uring/msg_ring: flag target ring as having task_work, if needed
Before the recent change, we didn't even wake the targeted task when posting the cqe remotely. Now we do wake it, but we do want to ensure that the recipient knows there's potential work there that needs to get processed to get the CQE posted. OR in IORING_SQ_TASKRUN for that purpose. Link: https://lore.kernel.org/io-uring/[email protected]/ Fixes: 6d043ee ("io_uring: do msg_ring in target task via tw") Signed-off-by: Jens Axboe <[email protected]>
1 parent f66f734 commit 761c61c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

io_uring/msg_ring.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ static int io_msg_ring_data(struct io_kiocb *req)
6767
TWA_SIGNAL_NO_IPI))
6868
return -EOWNERDEAD;
6969

70+
atomic_or(IORING_SQ_TASKRUN, &target_ctx->rings->sq_flags);
7071
return IOU_ISSUE_SKIP_COMPLETE;
7172
}
7273

0 commit comments

Comments
 (0)