From: Jens Axboe Date: Thu, 8 Nov 2012 20:38:35 +0000 (+0100) Subject: Use ETIMEDOUT instead of ETIME for exceeding max latency X-Git-Tag: fio-2.0.11~19 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=c5b3adc41e0a91be5c6accdbe6506522ebddfbdd;p=fio.git Use ETIMEDOUT instead of ETIME for exceeding max latency ETIME isn't very portable... Signed-off-by: Jens Axboe --- 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; } }