From c5b3adc41e0a91be5c6accdbe6506522ebddfbdd Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Thu, 8 Nov 2012 21:38:35 +0100 Subject: [PATCH] Use ETIMEDOUT instead of ETIME for exceeding max latency ETIME isn't very portable... Signed-off-by: Jens Axboe --- io_u.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/io_u.c b/io_u.c index 551c5ffa..119dd651 100644 --- a/io_u.c +++ b/io_u.c @@ -1359,8 +1359,8 @@ static void account_io_completion(struct thread_data *td, struct io_u *io_u, if (td->o.max_latency && tusec > td->o.max_latency) { if (!td->error) log_err("fio: latency of %lu usec exceeds specified max (%u usec)\n", tusec, td->o.max_latency); - td_verror(td, ETIME, "max latency exceeded"); - icd->error = ETIME; + td_verror(td, ETIMEDOUT, "max latency exceeded"); + icd->error = ETIMEDOUT; } } -- 2.25.1