]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librados: call notification under different thread context
authorYehuda Sadeh <yehuda@hq.newdream.net>
Tue, 24 Apr 2012 22:51:14 +0000 (15:51 -0700)
committerYehuda Sadeh <yehuda@hq.newdream.net>
Wed, 25 Apr 2012 21:14:29 +0000 (14:14 -0700)
commit70f70d803ab72ccad22c42e117a65062a43a23e0
tree7fde3d97243307a21af32ac32cbad9759db4f973
parente51772ca1953e25119b010e446092756cf59fc8d
librados: call notification under different thread context

This fixes #2342. We shouldn't call notify on the dispatcher
context. We should also make sure that we don't hold
the client lock while waiting for the responses.
Also, pushed the client_lock locking into the
ctx->notify().

Signed-off-by: Yehuda Sadeh <yehuda@hq.newdream.net>
src/librados/IoCtxImpl.cc
src/librados/IoCtxImpl.h
src/librados/RadosClient.cc
src/msg/Message.h