io_uring: kill off ios_left
authorPavel Begunkov <asml.silence@gmail.com>
Wed, 8 Sep 2021 15:40:49 +0000 (16:40 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 19 Oct 2021 11:49:52 +0000 (05:49 -0600)
commit4b628aeb69cc49adf56b9c1fde43558143e810f5
tree989c1fa986a2004cfc1df594d43d9a38c4d7dc46
parent71e1cef2d794338cc7b979d4c6144e1dc12718b5
io_uring: kill off ios_left

->ios_left is only used to decide whether to plug or not, kill it to
avoid this extra accounting, just use the initial submission number.
There is no much difference in regards of enabling plugging, where this
one does it in a few more cases, but all major ones should be covered
well.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/f13993bcf5b477f9a7d52881fc49f9457ea9870a.1631115443.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c