Skip to content

Commit 17712b7

Browse files
committed
Merge tag 'io_uring-6.11-20240802' of git://git.kernel.dk/linux
Pull io_uring fixes from Jens Axboe: "Two minor tweaks for the NAPI handling, both from Olivier: - Kill two unused list definitions - Ensure that multishot NAPI doesn't age away" * tag 'io_uring-6.11-20240802' of git://git.kernel.dk/linux: io_uring: remove unused local list heads in NAPI functions io_uring: keep multishot request NAPI timeout current
2 parents d9ef02e + c3fca4f commit 17712b7

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

io_uring/napi.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,6 @@ void io_napi_init(struct io_ring_ctx *ctx)
205205
void io_napi_free(struct io_ring_ctx *ctx)
206206
{
207207
struct io_napi_entry *e;
208-
LIST_HEAD(napi_list);
209208
unsigned int i;
210209

211210
spin_lock(&ctx->napi_lock);
@@ -315,7 +314,6 @@ void __io_napi_busy_loop(struct io_ring_ctx *ctx, struct io_wait_queue *iowq)
315314
*/
316315
int io_napi_sqpoll_busy_poll(struct io_ring_ctx *ctx)
317316
{
318-
LIST_HEAD(napi_list);
319317
bool is_stale = false;
320318

321319
if (!READ_ONCE(ctx->napi_busy_poll_dt))

io_uring/poll.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,7 @@ static int io_poll_check_events(struct io_kiocb *req, struct io_tw_state *ts)
347347
v &= IO_POLL_REF_MASK;
348348
} while (atomic_sub_return(v, &req->poll_refs) & IO_POLL_REF_MASK);
349349

350+
io_napi_add(req);
350351
return IOU_POLL_NO_ACTION;
351352
}
352353

0 commit comments

Comments
 (0)