]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: add more robust retry handling to maintenance ops
authorJason Dillaman <dillaman@redhat.com>
Wed, 14 Jan 2015 20:56:15 +0000 (15:56 -0500)
committerJosh Durgin <jdurgin@redhat.com>
Sat, 24 Jan 2015 23:05:49 +0000 (15:05 -0800)
commitcd9d8eb79a1abf9b982d9236385ced396cb1339f
tree584e26fdced6f0ffc8f77e4f5e63c60a18190364
parent1b6467b79f5c557e3b51eec040aa7af4728640ed
librbd: add more robust retry handling to maintenance ops

When image locking is enabled, snapshot create, resize, and
flatten are coordinated with the lock owner.  Previously, if the
the lock owner changed during one of this operations, the
operation would fail.  Now librbd will attempt to restart the
operation with the new lock owner (or become the owner itself).

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/ImageWatcher.cc
src/librbd/ImageWatcher.h
src/librbd/internal.cc
src/test/librbd/test_internal.cc