stat: reset_io_stats: fix a problem, rearrange some code
authorVincent Fu <Vincent.Fu@sandisk.com>
Sun, 16 Apr 2017 19:04:26 +0000 (15:04 -0400)
committerJens Axboe <axboe@fb.com>
Wed, 3 May 2017 14:49:37 +0000 (08:49 -0600)
commit71cb78c10a80f448b912dc20d24ea731f6a102d9
treec1e0c8ecd08548f890d4485d2bbcaa4272c0f00b
parente6200d822f0d2b9da5600ad2429be0e9e140e125
stat: reset_io_stats: fix a problem, rearrange some code

1) Make sure all the io_u_lat_u/m are reset
2) Only need to zero out total_submit/complete once
3) Reset total/short/drop_io_u inside the other loop that iterates over data directions

Signed-off-by: Jens Axboe <axboe@fb.com>
stat.c