Project

General

Profile

Bug #14798

free fds being exhausted eventually because freed fds are never put back

Added by Zhi Zhang over 3 years ago. Updated almost 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
02/18/2016
Due date:
% Done:

0%

Source:
Community (dev)
Tags:
Backport:
hammer
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
libcephfs
Labels (FS):
Pull request ID:

History

#1 Updated by Zhi Zhang over 3 years ago

  • Backport changed from ham to hammer

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.

#3 Updated by Zheng Yan over 3 years ago

  • Status changed from New to Need Review

#4 Updated by Greg Farnum over 3 years ago

  • Status changed from Need Review to Resolved

#5 Updated by Greg Farnum almost 3 years ago

  • Component(FS) libcephfs added

Also available in: Atom PDF