Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit 483a351

Browse files
committed
Merge tag 'io_uring-6.10-20240523' of git://git.kernel.dk/linux
Pull io_uring fixes from Jens Axboe: "Single fix here for a regression in 6.9, and then a simple cleanup removing some dead code" * tag 'io_uring-6.10-20240523' of git://git.kernel.dk/linux: io_uring: remove checks for NULL 'sq_offset' io_uring/sqpoll: ensure that normal task_work is also run timely
2 parents c2c80ec + 547988a commit 483a351

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

io_uring/io_uring.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2597,13 +2597,11 @@ static unsigned long rings_size(struct io_ring_ctx *ctx, unsigned int sq_entries
25972597
#endif
25982598

25992599
if (ctx->flags & IORING_SETUP_NO_SQARRAY) {
2600-
if (sq_offset)
2601-
*sq_offset = SIZE_MAX;
2600+
*sq_offset = SIZE_MAX;
26022601
return off;
26032602
}
26042603

2605-
if (sq_offset)
2606-
*sq_offset = off;
2604+
*sq_offset = off;
26072605

26082606
sq_array_size = array_size(sizeof(u32), sq_entries);
26092607
if (sq_array_size == SIZE_MAX)

io_uring/sqpoll.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,11 +238,13 @@ static unsigned int io_sq_tw(struct llist_node **retry_list, int max_entries)
238238
if (*retry_list) {
239239
*retry_list = io_handle_tw_list(*retry_list, &count, max_entries);
240240
if (count >= max_entries)
241-
return count;
241+
goto out;
242242
max_entries -= count;
243243
}
244-
245244
*retry_list = tctx_task_work_run(tctx, max_entries, &count);
245+
out:
246+
if (task_work_pending(current))
247+
task_work_run();
246248
return count;
247249
}
248250

0 commit comments

Comments
 (0)