Skip to content

Commit dbcabac

Browse files
committed
io_uring: signal SQPOLL task_work with TWA_SIGNAL_NO_IPI
Before SQPOLL was transitioned to managing its own task_work, the core used TWA_SIGNAL_NO_IPI to ensure that task_work was processed. If not, we can't be sure that all task_work is processed at SQPOLL thread exit time. Fixes: af5d68f ("io_uring/sqpoll: manage task_work privately") Cc: [email protected] Signed-off-by: Jens Axboe <[email protected]>
1 parent 26b9766 commit dbcabac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

io_uring/io_uring.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1259,8 +1259,8 @@ static void io_req_normal_work_add(struct io_kiocb *req)
12591259
if (ctx->flags & IORING_SETUP_SQPOLL) {
12601260
struct io_sq_data *sqd = ctx->sq_data;
12611261

1262-
if (wq_has_sleeper(&sqd->wait))
1263-
wake_up(&sqd->wait);
1262+
if (sqd->thread)
1263+
__set_notify_signal(sqd->thread);
12641264
return;
12651265
}
12661266

0 commit comments

Comments
 (0)