[Devel] [PATCH hci-8.2 v12 6/9] dm-ploop: use wake_up() for inflight_md_wq
Konstantin Khorenko
khorenko at virtuozzo.com
Mon Nov 30 14:42:54 MSK 2026
Applying with these fixes on my side:
- the uninterruptible waits are said to come from "dm-ploop: reload
metadata on resume", not from "the next patch";
- "A suspend or resume", not "A suspend";
- the message is split into three paragraphs: the code, the failure,
the fix.
On Fri, 20 Nov 2026 17:05:15 +0100, Alexander Ivanov wrote:
> The only waiter now, in ploop_suspend_submitting_pios(), sleeps
> interruptibly, but the next patch adds uninterruptible waits for
> inflight_md on postsuspend and preresume. A suspend that catches the
The next patch is 7/9, flip_upper_deltas; the waits come with 8/9, and
"the next patch" means nothing once this is in git log.
> last BAT write in flight would sleep there forever with
> md->suspend_lock held. Use wake_up(), which wakes both kinds.
Two of the three waits are in preresume, and resume hangs the same
way: dm_resume() holds md->suspend_lock too, and a resize of the
suspended device can leave the last BAT write in flight.
The message as applied:
ploop_put_piwb() and ploop_break_bat_update() wake inflight_md_wq with
wake_up_interruptible(), which wakes only TASK_INTERRUPTIBLE waiters.
The only waiter now, in ploop_suspend_submitting_pios(), sleeps
interruptibly.
"dm-ploop: reload metadata on resume" adds uninterruptible waits for
inflight_md on postsuspend and preresume. A suspend or resume that
catches the last BAT write in flight would sleep there forever with
md->suspend_lock held.
Use wake_up(), which wakes both kinds.
--
Konstantin Khorenko,
Virtuozzo Linux Kernel Team
More information about the Devel
mailing list