Skip to content

Commit 4010fec

Browse files
committed
io_uring: remove unused argument 'tsk' from io_req_caches_free()
We prune the full cache regardless, get rid of the dead argument. Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 8452d4a commit 4010fec

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

fs/io_uring.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8395,7 +8395,7 @@ static void io_req_cache_free(struct list_head *list, struct task_struct *tsk)
83958395
}
83968396
}
83978397

8398-
static void io_req_caches_free(struct io_ring_ctx *ctx, struct task_struct *tsk)
8398+
static void io_req_caches_free(struct io_ring_ctx *ctx)
83998399
{
84008400
struct io_submit_state *submit_state = &ctx->submit_state;
84018401
struct io_comp_state *cs = &ctx->submit_state.comp;
@@ -8455,7 +8455,7 @@ static void io_ring_ctx_free(struct io_ring_ctx *ctx)
84558455

84568456
percpu_ref_exit(&ctx->refs);
84578457
free_uid(ctx->user);
8458-
io_req_caches_free(ctx, NULL);
8458+
io_req_caches_free(ctx);
84598459
if (ctx->hash_map)
84608460
io_wq_put_hash(ctx->hash_map);
84618461
kfree(ctx->cancel_hash);
@@ -8969,7 +8969,7 @@ static int io_uring_flush(struct file *file, void *data)
89698969

89708970
if (fatal_signal_pending(current) || (current->flags & PF_EXITING)) {
89718971
io_uring_cancel_task_requests(ctx, NULL);
8972-
io_req_caches_free(ctx, current);
8972+
io_req_caches_free(ctx);
89738973
}
89748974

89758975
io_run_ctx_fallback(ctx);

0 commit comments

Comments
 (0)