[Devel] [PATCH hci-8.1 2/4] dm-ploop: fix a lost wakeup of the ploop_allocator() thread

Konstantin Khorenko khorenko at virtuozzo.com
Wed Nov 4 20:14:19 MSK 2026


I won't apply this version, please send v2 with the changes below.

On Tue, 03 Nov 2026 09:36:40 +0100, Denis V. Lunev wrote:
> ploop_allocate_cluster() until some later request wakes the thread. The

Item 2 of the cover letter reply: drop "until some later request wakes
the thread".

Why: ploop_req_prealloc() returns without a wakeup when the requested
size is already covered by prealloc_size, so later requests in the same
range do not wake the thread either. The stall does not end by itself.

Item 2 of the cover letter reply: add one sentence that the same
reorder fixes a lost kthread_stop() wakeup.

Why: the old loop tested kthread_should_stop() and only then set the
task state, so a kthread_stop() landing in between was lost the same
way and the device removal hung.

With that fixed:

Reviewed-by: Konstantin Khorenko <khorenko at virtuozzo.com>

-- 
Konstantin Khorenko,
Virtuozzo Linux Kernel Team



More information about the Devel mailing list