Bug #13726
closed
QEMU hangs after creating snapshot and stopping VM
Added by Jason Dillaman over 8 years ago.
Updated over 8 years ago.
Backport:
hammer,infernalis
Files
I have attached the client log,
the snapshot create command was :
rbd -p pooltest --image vm-162-disk-1 snap create --snap snap1
In-flight AIO read request forces an image refresh due to out-of-band snapshot creation. Detecting the newly created snapshot forces librbd to flush all in-flight ops. If there are no in-flight ops to flush, it will enqueue a completion on the thread pool. However, the thread pool will be blocked handling the AIO request waiting for the flush to complete.
The synchronous ImageCtx::flush_async_operations() method cannot use async callbacks.
- Backport set to hammer,infernalis
- Status changed from New to In Progress
- Assignee set to Jason Dillaman
- Status changed from In Progress to Fix Under Review
I confirm this is fixed with this PR.
(tested on infernalis)
- Status changed from Fix Under Review to Pending Backport
- Copied to Backport #13755: QEMU hangs after creating snapshot and stopping VM added
- Copied to Backport #13756: QEMU hangs after creating snapshot and stopping VM added
- Status changed from Pending Backport to Resolved
- Related to Bug #14988: QEMU VM hangs talking to RBD via librbd added
Also available in: Atom
PDF