io_uring: replace list with stack for req caches
authorPavel Begunkov <asml.silence@gmail.com>
Fri, 24 Sep 2021 20:59:47 +0000 (21:59 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 19 Oct 2021 11:49:53 +0000 (05:49 -0600)
commitc2b6c6bc4e0d3452ac4e208c198f6062e0f1d9df
tree20a203ab4168b2d6d71e3e1829fb9d6787c1581a
parent0d9521b9b526a264a46c42fcde5d3d9a7cb490ea
io_uring: replace list with stack for req caches

Replace struct list_head free_list serving for caching requests with
singly linked stack, which is faster.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/1bc942b82422fb2624b8353bd93aca183a022846.1632516769.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c