From a89c77abb152277ca3731f4766a7f377f0fc99df Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Thu, 28 Jan 2016 13:41:18 -0700 Subject: [PATCH] server: send trigger state inline If we don't send it inline, we can't be sure that it's transmitted if the trigger event is a hard reboot or similar. Signed-off-by: Jens Axboe --- server.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server.c b/server.c index 750717ad..c3e034ce 100644 --- a/server.c +++ b/server.c @@ -971,9 +971,9 @@ static int handle_trigger_cmd(struct fio_net_cmd *cmd) struct all_io_list state; state.threads = cpu_to_le64((uint64_t) 0); - fio_net_queue_cmd(FIO_NET_CMD_VTRIGGER, &state, sizeof(state), NULL, SK_F_COPY); + fio_net_queue_cmd(FIO_NET_CMD_VTRIGGER, &state, sizeof(state), NULL, SK_F_COPY | SK_F_INLINE); } else - fio_net_queue_cmd(FIO_NET_CMD_VTRIGGER, rep, sz, NULL, SK_F_FREE); + fio_net_queue_cmd(FIO_NET_CMD_VTRIGGER, rep, sz, NULL, SK_F_FREE | SK_F_INLINE); exec_trigger(buf); return 0; -- 2.25.1