On Thu, 01/12 19:07, Paolo Bonzini wrote: > This is the first step of pushing down the AioContext lock. Bottom halves > are already protected by their own lock, use it also for walking_bh > and for the handlers list (including walking_handlers). The (lock, > walking_foo) pair is wrapped into the QemuLockCnt primitive. > > The only difference from v3 is a smattering of tiny nice improvements > to QemuLockCnt. > > Paolo > > v4->v5: > remove stray tabs [patchew] > > v3->v4: > Avoid useless atomic_mb_read in non-futex lockcnt [Stefan] > Use atomic_read in qemu_lockcnt_count [Stefan] > Tweak comment for qemu_lockcnt_cmpxchg_or_wait [Fam] > Use if/else in qemu_lockcnt_dec_and_lock [Fam] > Comment QEMU_LOCKCNT_STATE_* definitions [Fam]
Perfect! Reviewed-by: Fam Zheng <f...@redhat.com>