io_uring: optimise commit_sqring() for common case
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 30 Dec 2019 18:24:46 +0000 (21:24 +0300)
committerJens Axboe <axboe@kernel.dk>
Tue, 21 Jan 2020 00:04:04 +0000 (17:04 -0700)
commitcaf582c652feccd42c50923f0467c4f2dcef279e
tree444c122dc319de1c2af6e35d4783927a02bb19d1
parentee7d46d9db19ded7b7222af95add63606318a480
io_uring: optimise commit_sqring() for common case

It should be pretty rare to not submitting anything when there is
something in the ring. No need to keep heuristics for this case.

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