[Devel] [PATCH hci-8.1 1/4] dm-ploop: fix pio submission racing with the suspend and resume of a cmd

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 change below.

On Tue, 03 Nov 2026 09:36:39 +0100, Denis V. Lunev wrote:
> - a pio that passed the check before the flag was set takes its ref on
>   the new index or on the already killed old one. The cmd does not
>   wait for it, and it runs while a merge, resize or delta index update
>   rewrites the BAT levels and deltas[];

Item 1 of the cover letter reply: add notify_merged to that list.

Why: ploop_delta_clusters_merged() stops submission the same way and
renumbers deltas[], so it is hit by the same race. The code is fine,
the RCU section and the grace period before the index switch close
both races.

With that fixed:

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

-- 
Konstantin Khorenko,
Virtuozzo Linux Kernel Team



More information about the Devel mailing list