]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: potential deadlock on close_image 3479/head
authorJason Dillaman <dillaman@redhat.com>
Fri, 23 Jan 2015 17:56:56 +0000 (12:56 -0500)
committerJason Dillaman <dillaman@redhat.com>
Fri, 23 Jan 2015 18:00:40 +0000 (13:00 -0500)
commit6f6facb981db47d056d209779ba219f47b99495c
tree4129b6a6278953b30e3b9d1e9a2b95cbd8de83bd
parenta73b8f816c831b9c2b599f06dd4b9108d73df8d0
librbd: potential deadlock on close_image

The owner_lock was incorrectly held when unregistering the image
watcher.  It was possible for the ImageWatcher finisher to be
running code that was then deadlocked waiting to acquire the
owner_lock while the close_image thread was attempting to shutdown
the deadlocked finisher.

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