From 57fd8dfa7be234bc3a810587c0d0081437786cca Mon Sep 17 00:00:00 2001 From: Vincent Fu Date: Fri, 3 Dec 2021 21:10:10 +0000 Subject: [PATCH] libfio: drop unneeded reset of rwmix_issues We don't need to repeatedly reset rwmix_issues inside a loop. We actually don't need to reset it at all inside reset_all_stats() because this is already done in reset_io_counters(). Signed-off-by: Vincent Fu Link: https://lore.kernel.org/r/20211203211050.51241-3-vincent.fu@samsung.com Signed-off-by: Jens Axboe --- libfio.c | 1 - 1 file changed, 1 deletion(-) diff --git a/libfio.c b/libfio.c index ed5906d4..198eaf2e 100644 --- a/libfio.c +++ b/libfio.c @@ -140,7 +140,6 @@ void reset_all_stats(struct thread_data *td) td->io_issues[i] = 0; td->ts.total_io_u[i] = 0; td->ts.runtime[i] = 0; - td->rwmix_issues = 0; } set_epoch_time(td, td->o.log_unix_epoch); -- 2.25.1