summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavel Begunkov <asml.silence@gmail.com>2021-08-09 20:18:09 +0100
committerJens Axboe <axboe@kernel.dk>2021-08-09 13:47:12 -0600
commitcd22a99bda02864041878392478181722e168781 (patch)
treeba7fc0f64de58d1de283f2d216ce293837c85798
parentd2e504bb47954f8ab45b3dc282e7cd4a80e0c457 (diff)
io_uring: remove redundant args from cache_free
We don't use @tsk argument of io_req_cache_free(), remove it. Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Link: https://lore.kernel.org/r/6a28b4a58ee0aaf0db98e2179b9c9f06f9b0cca1.1628536684.git.asml.silence@gmail.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r--fs/io_uring.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/io_uring.c b/fs/io_uring.c
index d76f06f7bb4e..a10b371b78dd 100644
--- a/fs/io_uring.c
+++ b/fs/io_uring.c
@@ -8625,13 +8625,11 @@ static void io_destroy_buffers(struct io_ring_ctx *ctx)
__io_remove_buffers(ctx, buf, index, -1U);
}
-static void io_req_cache_free(struct list_head *list, struct task_struct *tsk)
+static void io_req_cache_free(struct list_head *list)
{
struct io_kiocb *req, *nxt;
list_for_each_entry_safe(req, nxt, list, compl.list) {
- if (tsk && req->task != tsk)
- continue;
list_del(&req->compl.list);
kmem_cache_free(req_cachep, req);
}
@@ -8651,7 +8649,7 @@ static void io_req_caches_free(struct io_ring_ctx *ctx)
}
io_flush_cached_locked_reqs(ctx, cs);
- io_req_cache_free(&cs->free_list, NULL);
+ io_req_cache_free(&cs->free_list);
mutex_unlock(&ctx->uring_lock);
}