On Tue, Apr 10, 2018 at 10:58:09AM +0200, Kevin Wolf wrote: > Streaming and the commit block job only want to apply throttling when > they actually copied data instead of skipping it, so they made the > calculation of delay_ns conditional. However, delay_ns isn't reset when > skipping some sectors, so instead of not waiting, the old delay is > applied again. > > Properly reset delay_ns where needed. > > Signed-off-by: Kevin Wolf > --- > block/commit.c | 2 ++ > block/stream.c | 2 ++ > 2 files changed, 4 insertions(+) Reviewed-by: Stefan Hajnoczi