]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: don't split out consume out of SQE get
authorPavel Begunkov <asml.silence@gmail.com>
Fri, 12 Feb 2021 11:55:17 +0000 (11:55 +0000)
committerJens Axboe <axboe@kernel.dk>
Fri, 12 Feb 2021 12:30:36 +0000 (05:30 -0700)
commit22c92575de907d6462433ff36c86fd0a8034554f
treeaf9bea981815671fcfb0511ab7df474631460e9c
parent639ed585702df4c7bf94230a40ace1781ed68490
io_uring: don't split out consume out of SQE get

Remove io_consume_sqe() and inline it back into io_get_sqe(). It
requires req dealloc on error, but in exchange we get cleaner
io_submit_sqes() and better locality for cached_sq_head.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c