]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: assertion failure race condition if watch disconnected 5243/head
authorJason Dillaman <dillaman@redhat.com>
Fri, 26 Jun 2015 13:59:36 +0000 (09:59 -0400)
committerAbhishek Lekshmanan <abhishek.lekshmanan@ril.com>
Tue, 14 Jul 2015 14:16:42 +0000 (19:46 +0530)
commit03c07d76ac8361ddd302f5bc0575aee7fb5edc99
tree09e36a1cdaa3ce45fc2774c57f0de81e76ac6405
parent9a79e8e7da5f34f1adaf6137e01bcd42766ae677
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>
(cherry picked from commit af276de4f299960e43761904c043924cec5fef11)
src/librbd/internal.cc