]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: moved snap_create header update notification to initiator 4498/head
authorJason Dillaman <dillaman@redhat.com>
Tue, 7 Apr 2015 19:39:13 +0000 (15:39 -0400)
committerLoic Dachary <ldachary@redhat.com>
Wed, 29 Apr 2015 17:59:24 +0000 (19:59 +0200)
commit0e6a032c9e6ddae20be82df7500a0758d2cd8e74
tree286efa1f465a4858a999e2be33daefecc7855c87
parent74c2dc1f3924fa05e2c40f4cceb2ab060493bdfb
librbd: moved snap_create header update notification to initiator

When handling a proxied snap_create operation, the client which
invoked the snap_create should send the header update notification
to avoid a possible race condition where snap_create completes but
the client doesn't see the new snapshot (since it didn't yet receive
the notification).

Fixes: #11342
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 6e20ed6834912ccd979d16e3f3b340c239e05288)
src/librbd/ImageWatcher.cc
src/librbd/ImageWatcher.h
src/librbd/internal.cc