]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librados: read into user's bufferlist for aio_read
authorRutger ter Borg <rutger@terborg.net>
Wed, 27 Nov 2013 08:49:00 +0000 (00:49 -0800)
committerJosh Durgin <josh.durgin@inktank.com>
Mon, 30 Dec 2013 19:10:26 +0000 (11:10 -0800)
commit87db89ea8fbea8856442a9516220cf5d1fc4fb96
tree6c32073f601e6e83004bfb2639341103d1dd1919
parent15cdcba106eaf52ab58994b66386aac580b37a29
librados: read into user's bufferlist for aio_read

* The 'buf' argument to read() used to be passed into
  AioCompletionImpl, and the results would be copied back after
  reading. This is replaced with the creation of a static buffer of
  that buf.

* The pbl argument in AioCompletionImpl is removed.

The patch is tested against an application using librados. I've
assumed that 'pbl' in

aio_read( ...., pbl, )

is allocated by the user. It may even speed things up: a buffer copy
is prevented.

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
src/librados/AioCompletionImpl.h
src/librados/IoCtxImpl.cc