All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vincent Fu <vincent.fu@samsung.com>
To: "axboe@kernel.dk" <axboe@kernel.dk>,
	"fio@vger.kernel.org" <fio@vger.kernel.org>
Cc: Vincent Fu <vincent.fu@samsung.com>
Subject: [PATCH 2/2] libfio: drop unneeded reset of rwmix_issues
Date: Fri, 3 Dec 2021 21:10:10 +0000	[thread overview]
Message-ID: <20211203211050.51241-3-vincent.fu@samsung.com> (raw)
In-Reply-To: <20211203211050.51241-1-vincent.fu@samsung.com>

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 <vincent.fu@samsung.com>
---
 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

  parent reply	other threads:[~2021-12-03 21:11 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20211203211112uscas1p2e92f1c3a04f7bfe27d6fe69d519995d2@uscas1p2.samsung.com>
2021-12-03 21:10 ` [PATCH 0/2] two small cleanup patches Vincent Fu
     [not found]   ` <CGME20211203211112uscas1p1e12f2c24afadcb54828f9fa31ddd2a69@uscas1p1.samsung.com>
2021-12-03 21:10     ` [PATCH 1/2] io_ddir: return appropriate string for DDIR_INVAL Vincent Fu
     [not found]   ` <CGME20211203211113uscas1p11b7b2306b70944816d8bb99624dc10b5@uscas1p1.samsung.com>
2021-12-03 21:10     ` Vincent Fu [this message]
2021-12-03 21:46   ` [PATCH 0/2] two small cleanup patches Jens Axboe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20211203211050.51241-3-vincent.fu@samsung.com \
    --to=vincent.fu@samsung.com \
    --cc=axboe@kernel.dk \
    --cc=fio@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.