From: Jens Axboe Date: Fri, 17 May 2013 19:52:08 +0000 (+0200) Subject: flow: quiesce pending IO before sleep X-Git-Tag: fio-2.1.1~23 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=cb44aa1f72811770d50e1ba5da3d96f2beb51025 flow: quiesce pending IO before sleep Similar potential latency problem as was fixed for thinktime in commit 002e7183 and for rated IO in commit c3a1b740. Signed-off-by: Jens Axboe --- diff --git a/flow.c b/flow.c index b7a2fb12..f9d868d8 100644 --- a/flow.c +++ b/flow.c @@ -23,8 +23,11 @@ int flow_threshold_exceeded(struct thread_data *td) sign = td->o.flow > 0 ? 1 : -1; if (sign * flow->flow_counter > td->o.flow_watermark) { - if (td->o.flow_sleep) + if (td->o.flow_sleep) { + io_u_quiesce(td); usleep(td->o.flow_sleep); + } + return 1; }