]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: acquire cache_lock before refreshing parent 4013/head
authorJason Dillaman <dillaman@redhat.com>
Mon, 16 Mar 2015 15:04:22 +0000 (11:04 -0400)
committerJason Dillaman <dillaman@redhat.com>
Mon, 16 Mar 2015 15:11:21 +0000 (11:11 -0400)
commit703ba377e3de4007920f2ed7d8a0780f68676fe2
tree985d6d1d0c1607259e859f403b9fcc0b84a8d0bb
parentb38c96f2c1747a6d864e7aaa2e9858139ce9d1fd
librbd: acquire cache_lock before refreshing parent

cache_lock needs to be acquired before snap_lock to avoid
the potential for deadlock.

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