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>
Mon, 30 Dec 2019 22:25:56 +0000 (15:25 -0700)
commit19d32a70b14469f4f05203c6298f69b40edf1dec
treed0cc7e52bfe8768e72a17c165dfb96368c5637ae
parentd0c9ff979551f289bbb37884c6c530f8565a0d48
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