All of lore.kernel.org
 help / color / mirror / Atom feed
* Note about rbd_aio_write usage
@ 2017-07-06 12:26 Piotr Dałek
  2017-07-06 13:03 ` Jason Dillaman
  0 siblings, 1 reply; 12+ messages in thread
From: Piotr Dałek @ 2017-07-06 12:26 UTC (permalink / raw)
  To: ceph-devel, ceph-users

Hi,

If you're using "rbd_aio_write()" in your code, be aware of the fact that 
before Luminous release, this function expects buffer to remain unchanged 
until write op ends, and on Luminous and later this function internally 
copies the buffer, allocating memory where needed, freeing it once write is 
done.

If you write an app that may need to work with Luminous *and* pre-Luminous 
versions of librbd, you may want to provide a version check (using 
rbd_version() for example) so either your buffers won't change before write 
is done or you don't incur a penalty for unnecessary memory allocation and 
copy on your side (though it's probably unavoidable with current state of 
Luminous).

-- 
Piotr Dałek
piotr.dalek@corp.ovh.com
https://www.ovh.com/us/
_______________________________________________
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

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

end of thread, other threads:[~2017-07-07 13:14 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-06 12:26 Note about rbd_aio_write usage Piotr Dałek
2017-07-06 13:03 ` Jason Dillaman
     [not found]   ` <CA+aFP1A5UVZzSDfFvphsVq9Jra9PXbJHUXhaJ9tH8LGx5OKJfA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-07-06 13:33     ` Piotr Dałek
2017-07-06 13:43       ` Jason Dillaman
2017-07-06 14:22         ` Piotr Dałek
2017-07-06 14:40           ` Jason Dillaman
2017-07-06 15:46             ` Piotr Dałek
     [not found]               ` <e39eba47-ae4d-05bb-41cd-928565324d6c-Rm6v+N6rxxBWk0Htik3J/w@public.gmane.org>
2017-07-06 18:02                 ` Jason Dillaman
2017-07-06 19:25                   ` Piotr Dałek
2017-07-06 19:39                     ` Jason Dillaman
2017-07-07  6:48                       ` Piotr Dałek
2017-07-07 13:14                         ` Jason Dillaman

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.