Fix for loop count issue when do_verify=0 (#1093)
authorravisowmya <91231906+ravisowmya@users.noreply.github.com>
Tue, 28 Sep 2021 19:09:38 +0000 (12:09 -0700)
committerSowmya Ravi <sowmyaravi@ad.corp.google.com>
Wed, 29 Sep 2021 17:27:28 +0000 (10:27 -0700)
commit499cded5f435a0a7c379b606eb3e903d7f43c360
tree3170403e0eafbccea0c1009796608c8c9384a2b4
parent6e0ef20ffd975fc217aba4e7c125b420cd2fbd91
Fix for loop count issue when do_verify=0 (#1093)

'clear_io_state' is called twice and resets the nr_done_files.
'clear_io_state' resets the nr_done_files if loop>=1.
This API is called twice with in thread_main and the second call is
skipped if do_verify=0. We rely on the first call for setup management.
So, for the very last loop, we would have skipped reseting
'nr_done_files' because loops=0 resulting in an IO error
in do_io and we exit without performing any IOs. Fix will invoke
the second call to clear_io_state

Signed-off-by: Sowmya Ravi sowmyaravi.92@gmail.com
backend.c