]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: rewatch complete callback should be invoked w/o lock
authorJason Dillaman <dillaman@redhat.com>
Fri, 6 Jan 2017 14:29:02 +0000 (09:29 -0500)
committerJason Dillaman <dillaman@redhat.com>
Mon, 9 Jan 2017 17:56:00 +0000 (12:56 -0500)
commitc253b8871312161fe905c064e5bc05a9946e8533
tree79fec399b8bacafa44aec6a0e9a4d2a5f11c7811
parent1b2b637bb5bb8f07e44ac3ba7a7b1c7842793b1e
librbd: rewatch complete callback should be invoked w/o lock

It's currently being incorrectly invoked twice -- but the direct
callback is holding the Watcher lock. This results in a recursive
lock when ManagedLock attempts to retrieve the watch id from the
Watcher.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/Watcher.cc