io_uring: clamp to_submit in io_submit_sqes()
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 30 Dec 2019 18:24:44 +0000 (21:24 +0300)
committerJens Axboe <axboe@kernel.dk>
Wed, 15 Jan 2020 22:05:02 +0000 (15:05 -0700)
commita13e586a7ebad376653fa82274c936c4f18411ef
treee91de668e02f68110dfe2f632b93793fe7f5ce95
parent0ef77a84f2414b520508da126ef1e43ee24829bf
io_uring: clamp to_submit in io_submit_sqes()

Make io_submit_sqes() to clamp @to_submit itself. It removes duplicated
code and prepares for following changes.

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