backend: only terminate multiple loops if we did no IO
authorJens Axboe <axboe@fb.com>
Mon, 21 Dec 2015 17:01:40 +0000 (10:01 -0700)
committerJens Axboe <axboe@fb.com>
Mon, 21 Dec 2015 17:01:40 +0000 (10:01 -0700)
commit95b03be02f39a774b55d127df4c19ffd8f983c56
tree706873486a2251a30a77222a9fb48a77ad0b1aa0
parent70c6807675291c2c5ccb38cc9c81b45bcaed0ce1
backend: only terminate multiple loops if we did no IO

Commit 095196b1e76b introduced a stop point if do_io() returned
nothing, but that only counts writes and trims. Change that to
count all types of IO.

Fixes: 095196b1e76b ("backend: terminate loop if we didn't do IO")
Signed-off-by: Jens Axboe <axboe@fb.com>
backend.c