Project

General

Profile

Actions

Bug #19897

closed

rbd maybe pending in 99% when remove a clone image

Added by Tang Jin about 7 years ago. Updated over 6 years ago.

Status:
Duplicate
Priority:
Normal
Assignee:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Prerequisite: rbd_op_threads is 3 and rbd_cache is disable

When rbd removes a clone image, it is possible that rbd cmd pends in 99%.

If rbd removes a clone image, it will delete its parent ImageCtx at first including to delete its op_work_queue, it will be waiting until the ThreadPool finishes all its jobs because of 3 threads.
But the matter is that this 'drain' operation happens in ThreadPool::worker context itself, so the ThreadPool will never finish by itself.

Actions

Also available in: Atom PDF