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>
Mon, 30 Dec 2019 22:26:05 +0000 (15:26 -0700)
commitd668ae3bd35ce46b58a78569236e6bbb1e420f21
treeae681a1b0c979404b52a23a075b13707491be7b6
parentb89bbff7e2f00ee9435a2b87fa5dbb0d0d73c870
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