Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

osd: add pin/unpin support to cache tier (11066) #6326

Merged
merged 12 commits into from Oct 24, 2015

Conversation

Projects
None yet
3 participants
@liewegas
Copy link
Member

liewegas commented Oct 20, 2015

No description provided.

wonzhq added some commits Mar 11, 2015

rados: add the support of pin/unpin object in cache tier
Adding two new APIs in librados: cache_pin_object and cache_unpin_object

Signed-off-by: Zhiqiang Wang <zhiqiang.wang@intel.com>
osd: add support of pin/unpin objects in cache tier
Signed-off-by: Zhiqiang Wang <zhiqiang.wang@intel.com>
osd: force promotion when pin an object in cache tier
Signed-off-by: Zhiqiang Wang <zhiqiang.wang@intel.com>
osd/ReplicatePG: skip flush/evict pinned objects
Signed-off-by: Zhiqiang Wang <zhiqiang.wang@intel.com>
osd: add num_objects_pinned in object_stat_sum_t
To track the number of objects pinned in a PG.

Signed-off-by: Zhiqiang Wang <zhiqiang.wang@intel.com>
osd: only allow pin/unpin op on the cache tier
Reject the op when the pin/unpin op is not on the cache tier.

Signed-off-by: Zhiqiang Wang <zhiqiang.wang@intel.com>
librados: add RADOS C interfaces for pin/unpin object
Signed-off-by: Zhiqiang Wang <zhiqiang.wang@intel.com>
osd/ReplicatedPG: reject flush/evict ops on pinned objects
Return with -EINVAL.

Signed-off-by: Zhiqiang Wang <zhiqiang.wang@intel.com>
test/tier: test flush/evict on pinned object
Should return -EINVAL.

Signed-off-by: Zhiqiang Wang <zhiqiang.wang@intel.com>
test/tier: add test for cache_pin
Signed-off-by: Zhiqiang Wang <zhiqiang.wang@intel.com>
osd: return ENOENT when object doesn't exist for cache pin/unpin
Signed-off-by: Zhiqiang Wang <zhiqiang.wang@intel.com>
tracing: add tracepoints for cache pin/unpin
Signed-off-by: Zhiqiang Wang <zhiqiang.wang@intel.com>

liewegas added a commit that referenced this pull request Oct 24, 2015

Merge pull request #6326 from liewegas/wip-cache-pin-unpin
osd: add pin/unpin support to cache tier

Reviewed-by: Sage Weil <sage@redhat.com>

@liewegas liewegas merged commit aed2e87 into ceph:master Oct 24, 2015

@liewegas liewegas deleted the liewegas:wip-cache-pin-unpin branch Oct 24, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.