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

ceph-fuse: fix double decreasing the count to trim caps #7229

Merged

Conversation

david-z
Copy link
Member

@david-z david-z commented Jan 14, 2016

Ceph-fuse will recalculate current caps size for each loop, so it double decreases the loop counts. Hence at most time, ceph-fuse client only trims half of expected caps number. MDS often reports the warning of failing to respond to cache pressure.

Both master and hammer branch have this issue and this fix has been tested locally on both branches, so it can be backported to hammer.

Fixes: #14319

Signed-off-by: Zhi Zhang zhangz.david@outlook.com

Signed-off-by: Zhi Zhang zhangz.david@outlook.com
@ukernel
Copy link
Contributor

ukernel commented Jan 14, 2016

looks good

gregsfortytwo added a commit that referenced this pull request Jan 18, 2016
…hub.com/david-z/ceph into greg-fs-testing

#7229

Reviewed-by: Yan, Zheng <zyan@redhat.com>
gregsfortytwo added a commit that referenced this pull request Jan 20, 2016
…e-pressure

ceph-fuse: fix double decreasing the count to trim caps

Reviewed-by: Yan, Zheng <zyan@redhat.com>
@gregsfortytwo gregsfortytwo merged commit defdbed into ceph:master Jan 20, 2016
@ghost ghost changed the title ceph-fuse: double decreased the count to trim caps ceph-fuse: fix double decreasing the count to trim caps Feb 10, 2016
@david-z david-z deleted the wip-master-fix-failling-to-cache-pressure branch March 16, 2016 02:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants