On Thu, 31 Oct 2013, [email protected] wrote:
> I'm considering using rados callbacks in my application, but the
> documentation doesn't include enough information about their context.
> If I schedule a callback with rados_aio_create_completion(), from what
> context will my callback be called?  Will it be called from a signal
> handler?  Will it be called from a separate thread?  If I schedule
> multiple simultaneous callbacks, will they each be called from their
> own thread or from a single shared callback thread?  Perhaps most
> importantly, can I call other RADOS API functions from my callback?

The callbacks are currently called from a dedicated callback thread.  In 
particular, it is safe to call back into librados from a callback.  I 
would not rely on them being serialized, though, as that could conceivably 
change in the future.

sage
_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Reply via email to