Commit 25417623 authored by Jens Axboe's avatar Jens Axboe
Browse files

io_uring: flush delayed fallback task_work in cancelation



Just like we run the inline task_work, ensure we also factor in and
run the fallback task_work.

Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent c133b3b0
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -3218,6 +3218,8 @@ static __cold bool io_uring_try_cancel_requests(struct io_ring_ctx *ctx,
	ret |= io_kill_timeouts(ctx, task, cancel_all);
	if (task)
		ret |= io_run_task_work() > 0;
	else
		ret |= flush_delayed_work(&ctx->fallback_work);
	return ret;
}