io_uring: Simplify the allocation of slab caches
authorKunwu Chan <chentao@kylinos.cn>
Tue, 30 Jan 2024 10:02:47 +0000 (18:02 +0800)
committerJens Axboe <axboe@kernel.dk>
Thu, 8 Feb 2024 20:27:06 +0000 (13:27 -0700)
commita6e959bd3d6bfe8a3daeeacb714a299b9094a6cb
tree916dcf2639e6a282920817c3f837df7c6890bc0f
parentda08d2edb020026beac01d087d3b37e479fdb7e9
io_uring: Simplify the allocation of slab caches

commit 0a31bd5f2bbb ("KMEM_CACHE(): simplify slab cache creation")
introduces a new macro.
Use the new KMEM_CACHE() macro instead of direct kmem_cache_create
to simplify the creation of SLAB caches.

Signed-off-by: Kunwu Chan <chentao@kylinos.cn>
Link: https://lore.kernel.org/r/20240130100247.81460-1-chentao@kylinos.cn
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/io_uring.c