Hi, It might be obvious for people knowing the API but somehow I can't figure it out: How and when will the call back specified in a rbd_completion_t be called ? Imagine I do a rbd_aio_write and then do while (1); ... I don't see how the library could call my callback unless there is threads involved (and then my cb would be called in another thread context which is not great ...) (Of course the 'while (1)' here is just a stub, in reality it's a call to a library beyond my control) My problem here is that I need to integrate inside the main loop of another software and I can't block, but I still need to be able to 'notify' when the requests are over. I can ask the scheduler of that main loop to call me on some even on a file descriptor (but I don't see any fd here), or to call me periodically (but I don't see any call to test for completion without waiting for it). Cheers, Sylvain -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html