]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: fixed race condition on demotion of snapshot-based mirrored image
authorJason Dillaman <dillaman@redhat.com>
Thu, 9 Apr 2020 03:06:05 +0000 (23:06 -0400)
committerNathan Cutler <ncutler@suse.com>
Tue, 28 Apr 2020 18:52:10 +0000 (20:52 +0200)
commitea71fc8008c01e1d4c43a1310510960737133c38
tree37b6344666fa592aaf548943712950a7f288c0d0
parent2395264d3ddb58bc6d41b6a4c1a358e73de3983c
librbd: fixed race condition on demotion of snapshot-based mirrored image

A pending refresh could occur after setting the non-primary feature flag but
before the creation of the demotion snapshot. This would prevent the snapshot
from being created and would leave the image in a half-primary state.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit a3acdbd069b5c5bd62e528cbf2fbc33fe6f23d92)
src/librbd/api/Mirror.cc