]>
Commit | Line | Data |
---|---|---|
f67539c2 TL |
1 | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- |
2 | // vim: ts=8 sw=2 smarttab | |
3 | ||
4 | #ifndef CEPH_LIBRBD_CACHE_PWL_SSD_READ_REQUEST_H | |
5 | #define CEPH_LIBRBD_CACHE_PWL_SSD_READ_REQUEST_H | |
6 | ||
7 | #include "librbd/cache/pwl/ReadRequest.h" | |
8 | ||
9 | namespace librbd { | |
10 | namespace cache { | |
11 | namespace pwl { | |
12 | namespace ssd { | |
13 | ||
14 | typedef std::vector<pwl::ImageExtentBuf> ImageExtentBufs; | |
15 | ||
16 | class C_ReadRequest : public pwl::C_ReadRequest { | |
17 | protected: | |
18 | using pwl::C_ReadRequest::m_cct; | |
19 | using pwl::C_ReadRequest::m_on_finish; | |
20 | using pwl::C_ReadRequest::m_out_bl; | |
21 | using pwl::C_ReadRequest::m_arrived_time; | |
22 | using pwl::C_ReadRequest::m_perfcounter; | |
23 | public: | |
24 | C_ReadRequest(CephContext *cct, utime_t arrived, PerfCounters *perfcounter, bufferlist *out_bl, Context *on_finish) | |
25 | : pwl::C_ReadRequest(cct, arrived, perfcounter, out_bl, on_finish) {} | |
26 | void finish(int r) override; | |
27 | }; | |
28 | ||
29 | } // namespace ssd | |
30 | } // namespace pwl | |
31 | } // namespace cache | |
32 | } // namespace librbd | |
33 | ||
34 | #endif // CEPH_LIBRBD_CACHE_PWL_SSD_READ_REQUEST_H |