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>
Wed, 15 Jan 2020 22:05:03 +0000 (15:05 -0700)
commitcb37daf435f02ce189f5303c7c762507bec3be06
tree04bdecd994228503fdfd4655ccc73e0be6ef5f40
parent39ea15b1cb813f3f28007c3f0acb298ae3fe23f7
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