]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: complete cache read in a new thread context
authorJason Dillaman <dillaman@redhat.com>
Thu, 30 Apr 2015 17:40:16 +0000 (13:40 -0400)
committerJason Dillaman <dillaman@redhat.com>
Thu, 4 Jun 2015 20:49:51 +0000 (16:49 -0400)
commit0024677dc8adfd610418ca47599dd95d3a5a6612
tree69b4a0ab252ad2526ef98df116b6470dd0a35c69
parentc474ee42b87975c04eeb2b40b976deb5a5e2d518
librbd: complete cache read in a new thread context

The ObjectCacher complete the read callback while still holding
the cache lock.  This introduces lock ordering issues which are
resolved by queuing the completion to execute in a clean (unlocked)
context.

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