All of lore.kernel.org
 help / color / mirror / Atom feed
* RBD Async request: When / How are the call back called ?
@ 2012-08-29 14:57 Sylvain Munaut
  2012-08-29 16:47 ` Mike Ryan
  2012-08-29 16:48 ` Josh Durgin
  0 siblings, 2 replies; 6+ messages in thread
From: Sylvain Munaut @ 2012-08-29 14:57 UTC (permalink / raw)
  To: ceph-devel

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-08-30 15:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-29 14:57 RBD Async request: When / How are the call back called ? Sylvain Munaut
2012-08-29 16:47 ` Mike Ryan
2012-08-29 16:48 ` Josh Durgin
2012-08-30 12:16   ` Sylvain Munaut
2012-08-30 14:52     ` Mike Ryan
2012-08-30 15:39       ` Josh Durgin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.