Project

General

Profile

Bug #25213

handle ceph_ll_close on unmounted filesystem without crashing

Added by Jeff Layton 4 months ago. Updated 3 months ago.

Status:
Resolved
Priority:
High
Assignee:
Category:
nfs-ganesha
Target version:
Start date:
08/01/2018
Due date:
% Done:

0%

Source:
Development
Tags:
Backport:
mimic,luminous
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
Ganesha FSAL, libcephfs
Labels (FS):
Pull request ID:

Description

Client::_unmount will unmap and tear down all of the open Fh objects before returning. Programs that use the lowlevel interfaces however may hold pointers to these objects, and can issue calls against them. In particular, we may end up calling ceph_ll_close on the Fh after the unmount has returned, which can lead to doing a double put on the object.

Fix ceph_ll_close to be a no-op when the cmount is unmounted. We may need to do similar treatment for other calls as well, but that should at least fix the immediate problem I've seen in ganesha.


Related issues

Copied to fs - Backport #26914: mimic: handle ceph_ll_close on unmounted filesystem without crashing Resolved
Copied to fs - Backport #26915: luminous: handle ceph_ll_close on unmounted filesystem without crashing Resolved

History

#1 Updated by Jeff Layton 4 months ago

  • Category set to nfs-ganesha
  • Assignee set to Jeff Layton
  • Component(FS) libcephfs added

#2 Updated by Patrick Donnelly 4 months ago

  • Priority changed from Normal to High
  • Target version set to v14.0.0
  • Source set to Development
  • Backport set to mimic,luminous
  • Component(FS) Ganesha FSAL added

#3 Updated by Patrick Donnelly 4 months ago

  • Status changed from New to Need Review

#4 Updated by Patrick Donnelly 4 months ago

  • Status changed from Need Review to Pending Backport

#5 Updated by Patrick Donnelly 4 months ago

  • Copied to Backport #26914: mimic: handle ceph_ll_close on unmounted filesystem without crashing added

#6 Updated by Patrick Donnelly 4 months ago

  • Copied to Backport #26915: luminous: handle ceph_ll_close on unmounted filesystem without crashing added

#7 Updated by Nathan Cutler 3 months ago

  • Status changed from Pending Backport to Resolved

Also available in: Atom PDF