]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osdc: pass fadvise op flags to WritebackHandler read requests 3759/head
authorJason Dillaman <dillaman@redhat.com>
Thu, 19 Feb 2015 20:38:32 +0000 (15:38 -0500)
committerJason Dillaman <dillaman@redhat.com>
Thu, 19 Feb 2015 20:50:36 +0000 (15:50 -0500)
commit01f04cb93279803da21d5d31e98f19f61a599ee0
treec11677aabbe263697f87a4e98872b22f3446e97d
parentc4632427e26d63ba78e1c3653c781ad97e613b8a
osdc: pass fadvise op flags to WritebackHandler read requests

librbd was previously attempting to cast the provided Context to
retrieve the fadvise flags.  To eliminate the unsafe cast, now
the fadvise flags are directly passed to the WritebackHandler::read
callback.

Fixes: #10914
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/client/ObjecterWriteback.h
src/librbd/AioCompletion.h
src/librbd/AioRequest.h
src/librbd/LibrbdWriteback.cc
src/librbd/LibrbdWriteback.h
src/osdc/ObjectCacher.cc
src/osdc/ObjectCacher.h
src/osdc/WritebackHandler.h
src/test/osdc/FakeWriteback.cc
src/test/osdc/FakeWriteback.h