Skip to content

Commit c3fca4f

Browse files
Olivier Langloisaxboe
authored andcommitted
io_uring: remove unused local list heads in NAPI functions
These lists are unused, remove them. Signed-off-by: Olivier Langlois <[email protected]> Reviewed-by: Pavel Begunkov <[email protected]> Link: https://lore.kernel.org/r/0a0ae3e955aed0f3e3d29882fb3d3cb575e0009b.1722294947.git.olivier@trillion01.com Signed-off-by: Jens Axboe <[email protected]>
1 parent 2c762be commit c3fca4f

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-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))

0 commit comments

Comments
 (0)