]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: don't hold owner_lock for write during flush
authorJason Dillaman <dillaman@redhat.com>
Thu, 7 May 2015 16:35:36 +0000 (12:35 -0400)
committerJason Dillaman <dillaman@redhat.com>
Fri, 5 Jun 2015 16:29:32 +0000 (12:29 -0400)
commit2b6d0633d5c89de3a557cdd72621dfc19f0540de
tree554a9eaf918af9f00fc7c0a14bffc6254ca0c439
parentf2897886b0d2ad0ee4e3d2f57ae4ee0c1d38cf0d
librbd: don't hold owner_lock for write during flush

The various IO callback codepaths will attempt to take
the lock, which will result in deadlock since the flush
cannot complete.

Backport: hammer
Fixes: #11537
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Conflicts:
src/librbd/ImageWatcher.cc
src/librbd/ImageWatcher.cc