]> git.apps.os.sepia.ceph.com Git - ceph-ci.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)
committerJason Dillaman <dillaman@redhat.com>
Thu, 9 Apr 2020 14:00:28 +0000 (10:00 -0400)
commita3acdbd069b5c5bd62e528cbf2fbc33fe6f23d92
treeddc3f596c07080e9ab0700f21ec4e09ac8854e6e
parent0102ce88701dd52208520b8c0ab2e505548ed3e1
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>
src/librbd/api/Mirror.cc