[PATCH] Move timeout structure where it is used

Also makes sure that it's always initialized to 0's.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/fio.c b/fio.c
index e8181a1..28f6376 100644
--- a/fio.c
+++ b/fio.c
@@ -379,7 +379,6 @@
 	td_set_runstate(td, TD_RUNNING);
 
 	while (td->this_io_bytes[td->ddir] < td->io_size) {
-		struct timespec ts = { .tv_sec = 0, .tv_nsec = 0};
 		struct timespec *timeout;
 		int min_evts = 0;
 		struct io_u *io_u;
@@ -407,6 +406,8 @@
 		add_slat_sample(td, io_u->ddir, mtime_since(&io_u->start_time, &io_u->issue_time));
 
 		if (td->cur_depth < td->iodepth) {
+			struct timespec ts = { .tv_sec = 0, .tv_nsec = 0};
+
 			timeout = &ts;
 			min_evts = 0;
 		} else {