All Virtuozzo development lists (kernel + QEMU)
 help / color / mirror / Atom feed
From: "Denis V. Lunev" <den@openvz.org>
To: alexander.ivanov@virtuozzo.com, vasileios.almpanis@virtuozzo.com
Cc: devel@openvz.org
Subject: [Devel] [PATCH hci-8.2 0/2] dm-qcow2: fix image I/O completions using a freed target
Date: Thu, 19 Nov 2026 12:49:12 +0100	[thread overview]
Message-ID: <20261119114914.767536-1-den@openvz.org> (raw)

Suspend waits only for the inflight references, so a completion in the
backing file system's context can still free a helper qio into the
target's pool, or queue work on its workqueue, after a remove has
destroyed them. Make the destructor wait for image I/O completions,
as the dm-ploop fix for VSTOR-155932 does, and queue the worker before
the published qio can be ended.

https://virtuozzo.atlassian.net/browse/VSTOR-156036

Applies on top of the series "dm-qcow2: fix the ENOSPC timer left armed
on a removed target".

Tested in an HCI 8.2 VM with a completion held after its request ended:
remove oopses in mempool_free() on stock and waits the hold out with
the series, and the ploop test suite passes in qcow2 and ploop formats.

Denis V. Lunev (2):
  dm-qcow2: fix image I/O completions running on a freed target
  dm-qcow2: queue the worker before dropping deferred_lock in
    completions

 drivers/md/dm-qcow2-map.c    |  7 +++----
 drivers/md/dm-qcow2-target.c | 25 +++++++++++++++++++++++++
 drivers/md/dm-qcow2.h        |  2 ++
 3 files changed, 30 insertions(+), 4 deletions(-)

-- 
2.55.0

_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel

             reply	other threads:[~2026-11-19 11:50 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-19 11:49 Denis V. Lunev [this message]
2026-11-19 11:49 ` [Devel] [PATCH hci-8.2 1/2] dm-qcow2: fix image I/O completions running on " Denis V. Lunev
2026-11-19 11:49 ` [Devel] [PATCH hci-8.2 2/2] dm-qcow2: queue the worker before dropping deferred_lock in completions Denis V. Lunev
2026-11-19 12:53 ` [Devel] [PATCH hci-8.2 0/2] dm-qcow2: fix image I/O completions using a freed target Alexander Ivanov
2026-11-19 13:12 ` Andrey Zhadchenko
2026-11-19 14:50   ` Denis V. Lunev
2026-11-20  2:22     ` Andrey Zhadchenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261119114914.767536-1-den@openvz.org \
    --to=den@openvz.org \
    --cc=alexander.ivanov@virtuozzo.com \
    --cc=devel@openvz.org \
    --cc=vasileios.almpanis@virtuozzo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.