[Devel] [PATCH hci-8.1 5/7] drivers/md/dm-qcow2: implement per-qio fast processing
Konstantin Khorenko
khorenko at virtuozzo.com
Thu Nov 5 00:35:09 MSK 2026
I won't apply this version, please send v2 with the changes below.
On Thu, 29 Oct 2026 17:03:44 +0300, Andrey Zhadchenko wrote:
> +static void qio_try_fast(struct qio *qio, struct list_head *deferred_qios)
> +{
> + list_del(&qio->link);
> +
> + if (process_one_qio(qio->qcow2, qio, true))
> + list_add(&qio->link, deferred_qios);
> +}
Items 1 and 7 of the cover letter reply.
This patch is where the race of item 1 becomes live: from here on
process_one_qio() runs in parallel with do_qcow2_work(), and a write
can reach perform_rw_mapped() after the main kwork switched its L2 page
to writeback. The details are in the reply to patch 2.
Sashiko's list_add() remark holds, please use list_add_tail() or say
why the reversed order is fine.
--
Konstantin Khorenko,
Virtuozzo Linux Kernel Team
More information about the Devel
mailing list