On Wed 07 Feb 2018 08:17:58 AM CET, Wolfgang Bumiller wrote: > It is possible for rate limited writes to keep overshooting a slice's > quota by a tiny amount causing the slice-aligned waiting period to > effectively halve the rate. > > Signed-off-by: Wolfgang Bumiller <w.bumil...@proxmox.com> > --- > Copied the Ccs from the discussion thread, hope that's fine, as I also > just noticed that for my reply containing this snippet I had hit reply > on the mail that did not contain those Ccs yet, sorry about that.
Stefan mentioned in another e-mail that someone proposed at some point to unify this with the code in throttle.c. We can consider it but that needs to be evaluated first. The other code is more complex and has extra features (bursts) so it may not be worth the effort. Also the algorithm is different. I can take a look in the future when I have some time. Otherwise, your patch looks good. Reviewed-by: Alberto Garcia <be...@igalia.com> Berto