Otherwise we time out when file layout takes >= 5 seconds.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Client_created = 0,
Client_connected = 1,
Client_started = 2,
- Client_stopped = 3,
- Client_exited = 4,
+ Client_running = 3,
+ Client_stopped = 4,
+ Client_exited = 5,
};
static FLIST_HEAD(client_list);
handle_probe(client, cmd);
free(cmd);
break;
+ case FIO_NET_CMD_RUN:
+ client->state = Client_running;
+ free(cmd);
+ break;
case FIO_NET_CMD_START:
client->state = Client_started;
free(cmd);
skipped++;
continue;
}
+ if (client->state != Client_running)
+ continue;
assert(!client->eta_in_flight);
flist_add_tail(&client->eta_list, &eta_list);
static char *fio_server_arg;
static char *bind_sock;
static struct sockaddr_in saddr_in;
+static int first_cmd_check;
static const char *fio_server_ops[FIO_NET_CMD_NR] = {
"",
"START",
"STOP",
"DISK_UTIL",
+ "RUN",
};
const char *fio_server_op(unsigned int op)
void fio_server_idle_loop(void)
{
+ if (!first_cmd_check)
+ fio_net_send_simple_cmd(server_fd, FIO_NET_CMD_RUN, 0, NULL);
if (server_fd != -1)
handle_connection(server_fd, 0);
}
};
enum {
- FIO_SERVER_VER = 5,
+ FIO_SERVER_VER = 6,
FIO_SERVER_MAX_PDU = 1024,
FIO_NET_CMD_START = 11,
FIO_NET_CMD_STOP = 12,
FIO_NET_CMD_DU = 13,
- FIO_NET_CMD_NR = 14,
+ FIO_NET_CMD_RUN = 14,
+ FIO_NET_CMD_NR = 15,
FIO_NET_CMD_F_MORE = 1UL << 0,