job-fix-race-condition-v3
jnsnow
tagged this
02 Nov 17:50
There are a few problems with transactional job completion right now. First, if jobs complete so quickly they complete before remaining jobs get a chance to join the transaction, the completion mode can leave well known state and the QLIST can get corrupted and the transactional jobs can complete in batches or phases instead of all together. Second, if two or more jobs defer to the main loop at roughly the same time, it's possible for one job's cleanup to directly invoke the other job's cleanup from within the same thread, leading to a situation that will deadlock the entire transaction. Thanks to Vladimir for pointing out these modes of failure. === v3: === - Rebase to origin/master, requisite patches now upstream. === v2: === - Correct Vladimir's email (Sorry!) - Add test as a variant of an existing test [Vladimir] ________________________________________________________________________________ For convenience, this branch is available at: https://github.com/jnsnow/qemu.git branch job-fix-race-condition https://github.com/jnsnow/qemu/tree/job-fix-race-condition This version is tagged job-fix-race-condition-v3: https://github.com/jnsnow/qemu/releases/tag/job-fix-race-condition-v3
Assets 2
-
2016-11-02T17:50:50Z -
2016-11-02T17:50:50Z -