summaryrefslogtreecommitdiff
path: root/fs/io-wq.h
diff options
context:
space:
mode:
authorPavel Begunkov <asml.silence@gmail.com>2021-10-04 20:02:49 +0100
committerJens Axboe <axboe@kernel.dk>2021-10-19 05:49:54 -0600
commita33ae9ce16a8ca62c5dffbe8909d185c6c5b4d77 (patch)
tree15dbe6fca6f7bd0a23a6d99a12a10b6e257af760 /fs/io-wq.h
parentfff4e40e3094972b119e38c8f0de4e1ca9fec654 (diff)
io_uring: optimise request allocation
Even after fully inlining io_alloc_req() my compiler does a NULL check in the path of successful allocation, no hacks like an empty dereference help it. Restructure io_alloc_req() by splitting out refilling part, so the compiler generate a slightly better binary. Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Link: https://lore.kernel.org/r/eda17571bdc7248d8e617b23e7132a5416e4680b.1633373302.git.asml.silence@gmail.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/io-wq.h')
0 files changed, 0 insertions, 0 deletions