]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: assertion failure race condition if watch disconnected 5090/head
authorJason Dillaman <dillaman@redhat.com>
Fri, 26 Jun 2015 13:59:36 +0000 (09:59 -0400)
committerJason Dillaman <dillaman@redhat.com>
Fri, 26 Jun 2015 13:59:36 +0000 (09:59 -0400)
commitaf276de4f299960e43761904c043924cec5fef11
tree7bc9e02ac25d73085e375dbc902c5ab4e4d28dc1
parent555da2a15b3efce8b76851037330c4b82271cef7
librbd: assertion failure race condition if watch disconnected

It's possible for librbd's watch of the header object to be reset by
connection issues just prior to the image being removed.  This will
causes an assertion failure which assumes at least one watcher on the
image.

Fixes: #12176
Backport: hammer, firefly
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/internal.cc