Skip to contentSkip to conversation

Recent changes (master)

PATCH Jens Axboe 1 participant 1 message Jan 11, 2022

lore
Share & tools
lore

Jens Axboe

author
#0 lore raw

The following changes since commit b5e99df6ec605b4dc6a3488203f32d5c5bfce8df:

engines/io_uring: don't set CQSIZE clamp unconditionally (2022-01-09 19:34:27 -0700)

are available in the Git repository at:

git://git.kernel.dk/fio.git master

for you to fetch changes up to 016869bebe9bef7cae5a7f9dc0762162b0612226:

stat: remove unnecessary bool parameter to sum_thread_stats() (2022-01-10 09:22:14 -0700)

----------------------------------------------------------------
Niklas Cassel (1):
stat: remove unnecessary bool parameter to sum_thread_stats()

 client.c      |  2 +-
 gclient.c     |  2 +-
 rate-submit.c |  2 +-
 stat.c        | 53 +++++++++++++++++++++++------------------------------
 stat.h        |  2 +-
 5 files changed, 27 insertions(+), 34 deletions(-)

---

Diff of recent changes:

client.c +1 -1
index 8b230617..be8411d8 100644
@@ -1111,7 +1111,7 @@ static void handle_ts(struct fio_client *client, struct fio_net_cmd *cmd)
 	if (sum_stat_clients <= 1)
 		return;
 
-	sum_thread_stats(&client_ts, &p->ts, sum_stat_nr == 1);
+	sum_thread_stats(&client_ts, &p->ts);
 	sum_group_stats(&client_gs, &p->rs);
 
 	client_ts.members++;
gclient.c +1 -1
index e0e0e7bf..ac063536 100644
@@ -292,7 +292,7 @@ static void gfio_thread_status_op(struct fio_client *client,
 	if (sum_stat_clients == 1)
 		return;
 
-	sum_thread_stats(&client_ts, &p->ts, sum_stat_nr == 1);
+	sum_thread_stats(&client_ts, &p->ts);
 	sum_group_stats(&client_gs, &p->rs);
 
 	client_ts.members++;
rate-submit.c +1 -1
index 13dbe7a2..752c30a5 100644
@@ -195,7 +195,7 @@ static void io_workqueue_exit_worker_fn(struct submit_worker *sw,
 	struct thread_data *td = sw->priv;
 
 	(*sum_cnt)++;
-	sum_thread_stats(&sw->wq->td->ts, &td->ts, *sum_cnt == 1);
+	sum_thread_stats(&sw->wq->td->ts, &td->ts);
 
 	fio_options_free(td);
 	close_and_free_files(td);
stat.c +23 -30

109 lines not on this page · raw message

stat.h +1 -1
index 9ef8caa4..15ca4eff 100644
@@ -325,7 +325,7 @@ extern void __show_run_stats(void);
 extern int __show_running_run_stats(void);
 extern void show_running_run_stats(void);
 extern void check_for_running_stats(void);
-extern void sum_thread_stats(struct thread_stat *dst, struct thread_stat *src, bool first);
+extern void sum_thread_stats(struct thread_stat *dst, struct thread_stat *src);
 extern void sum_group_stats(struct group_run_stats *dst, struct group_run_stats *src);
 extern void init_thread_stat_min_vals(struct thread_stat *ts);
 extern void init_thread_stat(struct thread_stat *ts);