Re: [PATCH 6/6] jobs: ensure sleep in job_sleep_ns is fully performed

2022-02-10 Thread Vladimir Sementsov-Ogievskiy
08.02.2022 18:36, Emanuele Giuseppe Esposito wrote: If a drain happens while a job is sleeping, the timeout gets cancelled and the job continues once the drain ends. This is especially bad for the sleep performed in commit and stream jobs, since that is dictated by ratelimit to maintain a

Re: [PATCH 6/6] jobs: ensure sleep in job_sleep_ns is fully performed

2022-02-10 Thread Stefan Hajnoczi
On Tue, Feb 08, 2022 at 10:36:55AM -0500, Emanuele Giuseppe Esposito wrote: > If a drain happens while a job is sleeping, the timeout > gets cancelled and the job continues once the drain ends. > This is especially bad for the sleep performed in commit and stream > jobs, since that is dictated by

[PATCH 6/6] jobs: ensure sleep in job_sleep_ns is fully performed

2022-02-08 Thread Emanuele Giuseppe Esposito
If a drain happens while a job is sleeping, the timeout gets cancelled and the job continues once the drain ends. This is especially bad for the sleep performed in commit and stream jobs, since that is dictated by ratelimit to maintain a certain speed. Basically the execution path is the