OpenVZ / Virtuozzo kernel development (devel@openvz.org)
 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 a double fput of the delta file when ploop_add_delta() fails
Date: Thu, 19 Nov 2026 17:03:40 +0100	[thread overview]
Message-ID: <179510422064.1461989.176150325000275280.b4-review@b4> (raw)
In-Reply-To: <20261119010758.4106250-1-den@openvz.org>

Applying as is.

On Thu, 19 Nov 2026 02:07:58 +0100, Denis V. Lunev wrote:
> -	deltas[level].file = file;
>  	deltas[level].mtfile = kcalloc(ploop->nkt_runners, sizeof(*file),
>  					GFP_KERNEL);

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

1. The kcalloc() above sizes each mtfile slot as a whole struct file,
   not as a pointer: sizeof(*deltas[level].mtfile) is meant. With
   nr_cpu_ids runners that makes a large contiguous allocation, the
   very kcalloc() whose failure this patch handles.
   https://virtuozzo.atlassian.net/browse/VSTOR-156035

-- 
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:05 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-19  1:07 Denis V. Lunev
2026-11-19  1:12 ` no-reply
2026-11-19 11:58 ` Alexander Ivanov
2026-11-19 16:03 ` Konstantin Khorenko [this message]
2026-11-19 16:03 ` 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=179510422064.1461989.176150325000275280.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox