On 13/12/2017 21:46, John Snow wrote: > > When a user provides a new speed, kick the job to allow it to recalculate > its delay. > > Signed-off-by: John Snow <js...@redhat.com> > --- > > RFC: Why is block_job_mutex shared between all jobs, > instead of being per-job?
Because that patch was partly extracted out of a bigger one, and I was both lazy and worried about breaking things close to the release. In other words more uses of the mutex are coming, and it will need to be shared between jobs to work fine with transactions and monitor commands (which don't know the job they're working on until they've looked it up). Starting a paused block job is not a hot path. :) Paolo