]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: fixed ImageWatcher recursive locking issues 3756/head
authorJason Dillaman <dillaman@redhat.com>
Wed, 18 Feb 2015 16:10:57 +0000 (11:10 -0500)
committerJason Dillaman <dillaman@redhat.com>
Wed, 18 Feb 2015 16:10:57 +0000 (11:10 -0500)
commit08eb584f58263e70a32d80d0ba89a53c1c439fad
tree2f18106f5da113c7edb7deb3d344c6e43c628349
parent1fa74bee3f7aeda88adf5d35e5aa094cf069f331
librbd: fixed ImageWatcher recursive locking issues

It was possible for ImageWatcher to attempt to re-acquire held locks
via context callbacks.  This issue affected resizing/flattening when
no work was required and rescheduling a watch upon two successive
failures.

Fixes: #10899
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/ImageWatcher.cc
src/librbd/ImageWatcher.h