]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librados: copy out data to users' buffer for xio 8684/head
authorVu Pham <vu@mellanox.com>
Fri, 8 Apr 2016 20:23:07 +0000 (13:23 -0700)
committerVu Pham <vu@mellanox.com>
Thu, 28 Apr 2016 17:04:06 +0000 (10:04 -0700)
commit64bca33ae76646879e6801c45e6d91852e488f8b
tree135bbbb2897967c7f95b3381e14e6203cb9daa94
parent27c8608fc151587d150962e07bc35f8d739a11e7
librados: copy out data to users' buffer for xio

rados_aio_read(buf) call objecter->read(). Upon receiving
reply from osd, message->claim_data() is called which
enforces *deep* copy (both bufferlist and data buffers)
because Accelio's registered buffers is NON_SHAREABLE.
Received data is on new bufferlist and buffers but not
in original buffer provided by rados_aio_read() caller.
Another copy to users' buffer is needed

Signed-off-by: Vu Pham <vu@mellanox.com>
src/librados/AioCompletionImpl.h
src/librados/IoCtxImpl.cc