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)
commit4fccfcbb733794634d4e873e7973c1847beca5bf
treeaf9bea981815671fcfb0511ab7df474631460e9c
parent04fc6c802dfacba800f5a5d00bea0ebfcc60f840
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