[libvirt] [PATCH 0/6] qemu: blockjob: make automatic disk locking less useless

Peter Krempa pkrempa at redhat.com
Fri Dec 16 16:24:52 UTC 2016

If automatic disk locking would be enabled with either lock manager the
operations would most probably fail. This was mostly as libvirt did not bother
to release images that were no longer written to by qemu, or tried re-lock
the same image.

This fixes the locking code for creation of external snapshots (both disk-only
and with memory), block copy and active block commit.

This series also kills the horrible "rollback" code in the external disk
snapshot code.

Regular block commit work will be tracked by:

Peter Krempa (6):
  qemu: blockcopy: Save monitor error prior to calling into lock manager
  locking: Fix documentation on how automatic sanlock leases are stored
  qemu: snapshot: Don't redetect backing chain after snapshot
  qemu: snapshot: Refactor snapshot rollback on failure
  qemu: snapshot: Properly handle image locking
  qemu: blockjob: Fix locking of block copy/active block commit

 src/locking/sanlock.conf |   2 +-
 src/qemu/qemu_blockjob.c |  26 ++--
 src/qemu/qemu_driver.c   | 389 +++++++++++++++++++++++++++--------------------
 3 files changed, 242 insertions(+), 175 deletions(-)


More information about the libvir-list mailing list