]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: object cacher should re-use read state machine
authorJason Dillaman <dillaman@redhat.com>
Tue, 7 Nov 2017 19:36:10 +0000 (14:36 -0500)
committerJason Dillaman <dillaman@redhat.com>
Thu, 1 Feb 2018 16:16:26 +0000 (11:16 -0500)
commit487c41e71460610ff3833a6cc6f3c21ab345a2d4
treec1ae4a6a2a054ecf6572cfb04d8a02cc7e97cad1
parentb12810056dd74d0b6367123a4a7be6599b93f727
librbd: object cacher should re-use read state machine

This adds support for sparse-reads and ensures all object reads
utilize a single, tested code path.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit e79c0cf2009c69681ed4c70f52ade2f5fd570567)
src/librbd/LibrbdWriteback.cc
src/librbd/io/ImageRequest.cc
src/librbd/io/ObjectRequest.cc
src/librbd/io/ObjectRequest.h
src/librbd/io/ReadResult.cc
src/librbd/io/ReadResult.h
src/test/librbd/io/test_mock_ObjectRequest.cc