Project

General

Profile

Bug #20165

Deadlock during shutdown in PurgeQueue::_consume

Added by John Spray about 2 months ago. Updated about 1 month ago.

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

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Release:
Component(FS):
Needs Doc:
No

Description

PurgeQUeue does this while holding its lock:

        journaler.wait_for_readable(new FunctionContext([this](int r) {
          Mutex::Locker l(lock);
          if (r == 0) {
            _consume();
          }
        }));

But wait_for_readable does this:

  if (stopping) {
    onreadable->complete(-EAGAIN);
    return;
  }

History

#1 Updated by John Spray about 2 months ago

  • Status changed from In Progress to Need Review

#2 Updated by John Spray about 1 month ago

  • Status changed from Need Review to Resolved

Also available in: Atom PDF