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>
Tue, 21 Jan 2020 00:04:02 +0000 (17:04 -0700)
commit9ef4f124894b7b9241a3cf5f9b40db0812783d66
treeccba047a1b7d6ac914928ad170f469ae88a6aa18
parent8110c1a6212e430a84edd2b83fe9043def8b743e
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