Re: What is the context for rados callbacks?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 31 Oct 2013, asomers@xxxxxxxxx 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
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com




[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux