All Virtuozzo development lists (kernel + QEMU)
 help / color / mirror / Atom feed
From: Konstantin Khorenko <khorenko@virtuozzo.com>
To: "Denis V. Lunev" <den@openvz.org>
Cc: devel@openvz.org
Subject: Re: [Devel] [PATCH hci-8.2] dm-ploop: fix image I/O completions running on a freed ploop
Date: Thu, 19 Nov 2026 17:23:34 +0100	[thread overview]
Message-ID: <179510541478.1461989.16231356815992667687.b4-review@b4> (raw)
In-Reply-To: <20261118222702.3878760-1-den@openvz.org>

Applying as is.

On Wed, 18 Nov 2026 23:27:02 +0100, Denis V. Lunev wrote:
> Take a percpu reference in ploop_call_rw_iter() for every image file
> I/O and drop it after the completion handler returns. ploop_destroy()
> kills it once its threads are stopped and waits for the last completion
> before it frees the pools and the struct ploop.

Separate patches, not needed for this one. I created a task for it:

1. dm-qcow2 has the same window: do_qio_endio() drops the inflight ref
   that suspend waits for and only then frees the qio into
   tgt->qio_pool, from the backing fs completion context. A remove
   right after the suspend destroys that pool first.
   https://virtuozzo.atlassian.net/browse/VSTOR-156036

-- 
Konstantin Khorenko,
Virtuozzo Linux Kernel Team

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

  parent reply	other threads:[~2026-11-19 16:24 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-18 22:27 Denis V. Lunev
2026-11-18 22:32 ` no-reply
2026-11-19  8:15 ` Alexander Ivanov
2026-11-19 16:23 ` Konstantin Khorenko [this message]
2026-11-19 16:24 ` Konstantin Khorenko

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=179510541478.1461989.16231356815992667687.b4-review@b4 \
    --to=khorenko@virtuozzo.com \
    --cc=den@openvz.org \
    --cc=devel@openvz.org \
    /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.