[Devel] [PATCH hci-8.2] dm-ploop: fix image I/O completions running on a freed ploop
Konstantin Khorenko
khorenko at virtuozzo.com
Thu Nov 19 19:23:34 MSK 2026
Applying as is.
On Wed, 18 Nov 2026 23:27:02 +0100, Denis V. Lunev wrote:
> Take a percpu reference in ploop_call_rw_iter() for every image file
> I/O and drop it after the completion handler returns. ploop_destroy()
> kills it once its threads are stopped and waits for the last completion
> before it frees the pools and the struct ploop.
Separate patches, not needed for this one. I created a task for it:
1. dm-qcow2 has the same window: do_qio_endio() drops the inflight ref
that suspend waits for and only then frees the qio into
tgt->qio_pool, from the backing fs completion context. A remove
right after the suspend destroys that pool first.
https://virtuozzo.atlassian.net/browse/VSTOR-156036
--
Konstantin Khorenko,
Virtuozzo Linux Kernel Team
More information about the Devel
mailing list