Commit c3fca4fb authored by Olivier Langlois's avatar Olivier Langlois Committed by Jens Axboe

io_uring: remove unused local list heads in NAPI functions

These lists are unused, remove them.
Signed-off-by: default avatarOlivier Langlois <olivier@trillion01.com>
Reviewed-by: default avatarPavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/0a0ae3e955aed0f3e3d29882fb3d3cb575e0009b.1722294947.git.olivier@trillion01.comSigned-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 2c762be5
...@@ -205,7 +205,6 @@ void io_napi_init(struct io_ring_ctx *ctx) ...@@ -205,7 +205,6 @@ void io_napi_init(struct io_ring_ctx *ctx)
void io_napi_free(struct io_ring_ctx *ctx) void io_napi_free(struct io_ring_ctx *ctx)
{ {
struct io_napi_entry *e; struct io_napi_entry *e;
LIST_HEAD(napi_list);
unsigned int i; unsigned int i;
spin_lock(&ctx->napi_lock); spin_lock(&ctx->napi_lock);
...@@ -315,7 +314,6 @@ void __io_napi_busy_loop(struct io_ring_ctx *ctx, struct io_wait_queue *iowq) ...@@ -315,7 +314,6 @@ void __io_napi_busy_loop(struct io_ring_ctx *ctx, struct io_wait_queue *iowq)
*/ */
int io_napi_sqpoll_busy_poll(struct io_ring_ctx *ctx) int io_napi_sqpoll_busy_poll(struct io_ring_ctx *ctx)
{ {
LIST_HEAD(napi_list);
bool is_stale = false; bool is_stale = false;
if (!READ_ONCE(ctx->napi_busy_poll_dt)) if (!READ_ONCE(ctx->napi_busy_poll_dt))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment