Re: [PATCH 7/8] blockjob: Adhere to rate limit even when reentered early

2023-05-12 Thread Eric Blake
On Wed, May 10, 2023 at 10:36:00PM +0200, Kevin Wolf wrote: > > When jobs are sleeping, for example to enforce a given rate limit, they > can be reentered early, in particular in order to get paused, to update > the rate limit or to get cancelled. > > Before this patch, they behave in this case

[PATCH 7/8] blockjob: Adhere to rate limit even when reentered early

2023-05-10 Thread Kevin Wolf
When jobs are sleeping, for example to enforce a given rate limit, they can be reentered early, in particular in order to get paused, to update the rate limit or to get cancelled. Before this patch, they behave in this case as if they had fully completed their rate limiting delay. This means that