]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: assertion failure race condition if watch disconnected 5171/head
authorJason Dillaman <dillaman@redhat.com>
Fri, 26 Jun 2015 13:59:36 +0000 (09:59 -0400)
committerNathan Cutler <ncutler@suse.com>
Wed, 8 Jul 2015 14:32:13 +0000 (16:32 +0200)
commit3223bd604117b0b302b1e3e235ff9bced8e986bc
tree7d96ed96ce13caaed89d98d107dd7c5ad65ed442
parent1623e6c6517ff6958b343493fce6a8e50a52a042
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