+static void request_client_etas(void)
+{
+ struct fio_client *client;
+ struct flist_head *entry;
+ struct client_eta *eta;
+
+ dprint(FD_NET, "client: request eta (%d)\n", nr_clients);
+
+ /*
+ * We need to do something more clever about checking status
+ * of command being send, client haven't sent previous ETA
+ * already, etc.
+ */
+
+ eta = malloc(sizeof(*eta));
+ memset(&eta->eta, 0, sizeof(eta->eta));
+ eta->pending = nr_clients;
+
+ flist_for_each(entry, &client_list) {
+ client = flist_entry(entry, struct fio_client, list);
+
+ client->waiting_eta = 1;
+ fio_net_send_simple_cmd(client->fd, FIO_NET_CMD_SEND_ETA,
+ (uint64_t) eta);
+ }
+
+ dprint(FD_NET, "client: requested eta tag %p\n", eta);
+}
+