]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
librbd: avoid bl manipulation on single object read/writes
authorJason Dillaman <dillaman@redhat.com>
Thu, 9 May 2019 03:31:01 +0000 (23:31 -0400)
committerJason Dillaman <dillaman@redhat.com>
Mon, 13 May 2019 17:30:09 +0000 (13:30 -0400)
commita786cfd0ab2ad7f9c2711217adef9e6ed908f86d
tree1143483f95285af42e2ce2224c89bc15b316f0f5
parentcac640c5647c36b80cbfad44ccee16dec01f1624
librbd: avoid bl manipulation on single object read/writes

If a read or write only spans a single object and buffer extent,
there isn't any need to build a new bufferlist from a full sub-bl.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/io/ImageRequest.cc
src/librbd/io/ImageRequest.h
src/librbd/io/ReadResult.cc