summaryrefslogtreecommitdiffstats
path: root/src/osdc/WritebackHandler.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* osdc: Build target 'common' without using namespace in headersAdam C. Emerson2020-03-071-3/+3
| | | | | | | | Part of a changeset to allow building all of 'common' without relying on 'using namespace std' or 'using namespace ceph' at toplevel in headers. Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
* osd: do not include Messenger.h if not necessaryKefu Chai2018-06-091-0/+1
| | | | | | | to speed up the compilation, do not include Messenger.h, and use forward declaration instead. Signed-off-by: Kefu Chai <kchai@redhat.com>
* blkin: improve trace visibility into object cacherJason Dillaman2017-05-191-4/+5
| | | | Signed-off-by: Jason Dillaman <dillaman@redhat.com>
* blkin: pass trace information to object cacherVictor Araujo2017-05-191-2/+4
| | | | | Signed-off-by: Victor Araujo <ve.ar91@gmail.com> Signed-off-by: Jason Dillaman <dillaman@redhat.com>
* Revert "osdc: ObjectCacher flusher might needs additional locks"Jason Dillaman2016-08-281-3/+0
| | | | | | This reverts commit a38f9e5104a6e08e130dc4f15ad19a06d9e63719. Signed-off-by: Jason Dillaman <dillaman@redhat.com>
* ObjectCacher: pass new journal tid when overwriting extentJason Dillaman2016-05-191-1/+2
| | | | | | | | librbd needs to ensure the new journal event has been safely committed to disk before it can mark an overwritten journal event as committed. Signed-off-by: Jason Dillaman <dillaman@redhat.com>
* objectcacher: coalesce dirty buffers in one object into one IOYan, Zheng2016-01-131-0/+9
| | | | | | | Signed-off-by: Yan, Zheng <zyan@redhat.com> Update for ceph::real_time Signed-off-by: Greg Farnum <gfarnum@redhat.com>
* time: Update OSDC for C++11 TimeAdam C. Emerson2015-12-181-1/+1
| | | | Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
* osdc: WhitespaceAdam C. Emerson2015-12-181-4/+6
| | | | | | | Since I'm making a pervasive change anyway, knock off end-of-line spaces and wrap overly long lines. Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
* osdc: track journal commit tid within ObjectCacher for writesJason Dillaman2015-11-131-1/+4
| | | | | | | | | Writebacks from the journal will provide the associated journal commit tid so that writebacks can be delayed until after the journal entry is safe on disk. This allows asynchronously submitting an event to the journal and submitting the write operation to the ObjectCacher. Signed-off-by: Jason Dillaman <dillaman@redhat.com>
* osdc/WritebackHandler: remove obsolete lock operationSage Weil2015-07-311-4/+0
| | | | Signed-off-by: Sage Weil <sage@redhat.com>
* osdc: ObjectCacher flusher might needs additional locksJason Dillaman2015-06-041-0/+3
| | | | | | | | librbd requires the ObjectCacher flusher thread to acquire an additional lock in order to maintain lock ordering constraints. Signed-off-by: Jason Dillaman <dillaman@redhat.com>
* osdc: pass fadvise op flags to WritebackHandler read requestsJason Dillaman2015-02-191-1/+1
| | | | | | | | | | 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>
* librbd: Use object map for IO operationsJason Dillaman2015-01-291-4/+4
| | | | | | | | When the RBD object map feature is enabled, IO operations now check whether or not an object exists before sending an IO operation to RADOS. Signed-off-by: Jason Dillaman <dillaman@redhat.com>
* Change tid_t to ceph_tid_t to avoid conflicts with a popular typeDan Mick2014-03-191-6/+7
| | | | Signed-off-by: Dan Mick <dan.mick@inktank.com>
* WritebackHandler: make read return nothingJosh Durgin2013-04-101-4/+4
| | | | | | | | The tid returned by reads is ignored, and would make tracking writes internally more difficult by using the same id-space as them. Make read void and update all implementations. Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
* osdc/WritebackHandler: add may_copy_on_write()Sage Weil2012-11-041-0/+12
| | | | | | | Implement a new method to tell us whether a read to a particular region could be affected by a write-triggered copy-on-write. Signed-off-by: Sage Weil <sage@inktank.com>
* ObjectCacher: remove dependency on ObjecterJosh Durgin2012-04-141-0/+29
Abstract out how writeback is done with a WritebackHandler object. For RBD caching, this will be done by librados, but the Client uses the Objecter directly. This also requires different locks, since librbd does not have access to the lock the underlying Objecter uses. Thus, both lock and the writeback handler are parameters of the ObjectCacher constructor. Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>