Project

General

Profile

Bug #14996

libcephfs hangs on shutdown if an unclosed opendir handle exists

Added by John Spray over 3 years ago. Updated over 3 years ago.

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

0%

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

Description

This will hang on shutdown:

import cephfs                                                                   
f = cephfs.LibCephFS(conffile='')                                               
f.mount()                                                                       
d = f.opendir("/")

Interestingly, open FDs on files don't have the same issue.

Associated revisions

Revision 8fc1b1b0 (diff)
Added by Yan, Zheng over 3 years ago

client: close opened dirs when umounting

Fixes: #14996
Signed-off-by: Yan, Zheng <>

History

#1 Updated by Zheng Yan over 3 years ago

I think we should unify open file/directory handle

#2 Updated by Zheng Yan over 3 years ago

  • Status changed from New to Need Review

#3 Updated by Greg Farnum over 3 years ago

  • Status changed from Need Review to Resolved

Also available in: Atom PDF