]> git.ipfire.org Git - thirdparty/libvirt.git/commit
lock_driver: Introduce VIR_LOCK_MANAGER_ACQUIRE_ROLLBACK
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 7 Sep 2018 14:07:13 +0000 (16:07 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 18 Sep 2018 15:12:53 +0000 (17:12 +0200)
commit385eb8399bdb1610447c2857abfe99cee4a9fb9e
tree195a425c1810982613ceb55c4caa473c6e4e8b8c
parent997283b54b0e1f599aed3085ceba027eb8110acb
lock_driver: Introduce VIR_LOCK_MANAGER_ACQUIRE_ROLLBACK

Soon there will be a virtlockd client that wants to either lock
all the resources or none (in order to avoid virtlockd killing
the client on connection close). Because on the RPC layer we can
only acquire one resource at a time, we have to perform a
rollback once we hit a resource that can't be acquired.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
src/locking/lock_driver.h
src/locking/lock_driver_lockd.c