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
[email protected]
https://www.ovh.com/us/
_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Reply via email to