From: Mike Snitzer <snitzer@kernel.org>
To: Mikulas Patocka <mpatocka@redhat.com>
Cc: Joe Thornber <thornber@redhat.com>,
Zdenek Kabelac <zkabelac@redhat.com>,
dm-devel@lists.linux.dev
Subject: Re: dm persistent data: fix memory allocation failure
Date: Tue, 13 Aug 2024 11:24:02 -0400 [thread overview]
Message-ID: <Zrt6kskSNfQQecHH@kernel.org> (raw)
In-Reply-To: <12f6fc8a-a0cb-48c-e792-57f09b62cd@redhat.com>
On Tue, Aug 13, 2024 at 04:35:14PM +0200, Mikulas Patocka wrote:
> kmalloc is unreliable when allocating more than 8 pages of memory. It may
> fail when there is plenty of free memory but the memory is fragmented.
> Zdenek Kabelac observed such failure in his tests.
>
> This commit changes kmalloc to kvmalloc - kvmalloc will fall back to
> vmalloc if the large allocation fails.
Should add this tag here:
Reported-by: Zdenek Kabelac <zkabelac@redhat.com>
> Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
> Cc: stable@vger.kernel.org
Reviewed-by: Mike Snitzer <snitzer@kernel.org>
prev parent reply other threads:[~2024-08-13 15:24 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-13 14:35 [PATCH] dm persistent data: fix memory allocation failure Mikulas Patocka
2024-08-13 15:24 ` Mike Snitzer [this message]
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=Zrt6kskSNfQQecHH@kernel.org \
--to=snitzer@kernel.org \
--cc=dm-devel@lists.linux.dev \
--cc=mpatocka@redhat.com \
--cc=thornber@redhat.com \
--cc=zkabelac@redhat.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.