blockjob: kick jobs on set-speed
commitaa9ef2e65bed6a8f1709e0523fc856ec08beb657
authorJohn Snow <jsnow@redhat.com>
Wed, 13 Dec 2017 20:46:11 +0000 (13 15:46 -0500)
committerJeff Cody <jcody@redhat.com>
Mon, 18 Dec 2017 15:54:13 +0000 (18 10:54 -0500)
tree75b414607f974f1c2cf46fb66a45a4d3c07e1cc2
parent53f1c8794f2c1aea4d2888a3ac4e1b3b8b8b9777
blockjob: kick jobs on set-speed

If users set an unreasonably low speed (like one byte per second), the
calculated delay may exceed many hours. While we like to punish users
for asking for stupid things, we do also like to allow users to correct
their wicked ways.

When a user provides a new speed, kick the job to allow it to recalculate
its delay.

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-id: 20171213204611.26276-1-jsnow@redhat.com
Signed-off-by: Jeff Cody <jcody@redhat.com>
blockjob.c