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

[cephfs] fix free fds being exhausted eventually because freed fds are never put back #7685

Merged
merged 1 commit into from Mar 10, 2016

Conversation

david-z
Copy link
Member

@david-z david-z commented Feb 18, 2016

The open and create operation in libcephfs will get a free fd from the free_fd_set. This free fd will be erased from the free_fd_set. But in close operation, it just erases this free fd from fd_map and never put it back to free_fd_set. So free_fd_set will exhaust all the free fds initialized at beginning eventually. I think we should put freed fd back to free_fd_set for reusing.

Fixes: #14798

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

…e never put back

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

ukernel commented Feb 22, 2016

good catch.

@ukernel
Copy link
Contributor

ukernel commented Mar 3, 2016

gregsfortytwo added a commit that referenced this pull request Mar 8, 2016
…eph into greg-fs-testing

#7685

Reviewed-by: Yan, Zheng <zyan@redhat.com>
@gregsfortytwo
Copy link
Member

http://qa-proxy.ceph.com/teuthology/gregf-2016-03-07_23:12:27-fs-greg-fs-testing-3-7-safe---basic-mira/
5 failures; largely infrastructure; all known and consistent at time of testing.

gregsfortytwo added a commit that referenced this pull request Mar 10, 2016
[cephfs] fix free fds being exhausted eventually because freed fds are never put back

Reviewed-by: Yan, Zheng <zyan@redhat.com>
@gregsfortytwo gregsfortytwo merged commit d63186f into ceph:master Mar 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants