* Re: [PATCH] mm: Free unused pages in kmalloc_order()
@ 2020-06-28 11:17 Markus Elfring
2020-06-28 16:35 ` Matthew Wilcox
0 siblings, 1 reply; 2+ messages in thread
From: Markus Elfring @ 2020-06-28 11:17 UTC (permalink / raw)
To: Long Li, linux-mm
Cc: kernel-janitors, linux-kernel, Andrew Morton, Christoph Lameter,
David Rientjes, Joonsoo Kim, Pekka Enberg
> kmalloc(1024, GFP_HIGHUSER) can allocate memory normally,
> kmalloc(64*1024, GFP_HIGHUSER) will cause a memory leak,
Would you like to explain the influence of the selected allocation size
in a different way?
> because alloc_pages returns highmem physical pages, but it cannot be directly
> converted into a virtual address and return NULL, the pages has not
> been released. Usually driver developers will not use the
> GFP_HIGHUSER flag to allocate memory in kmalloc, but I think this
> memory leak is not perfect, it is best to be fixed.
I suggest to improve this change description.
* Did you apply any special analysis tools?
* How do you think about to split the text into more sentences?
* Would you like to extend any software documentation?
> This is the first time I have posted a patch,
I find this information irrelevant for the proposed commit message.
> there may be something wrong.
There are usual risks to consider also for such software development.
Will it become helpful to add the tag “Fixes”?
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?id=719fdd32921fb7e3208db8832d32ae1c2d68900f#n183
Regards,
Markus
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] mm: Free unused pages in kmalloc_order()
2020-06-28 11:17 [PATCH] mm: Free unused pages in kmalloc_order() Markus Elfring
@ 2020-06-28 16:35 ` Matthew Wilcox
0 siblings, 0 replies; 2+ messages in thread
From: Matthew Wilcox @ 2020-06-28 16:35 UTC (permalink / raw)
To: Markus Elfring
Cc: Long Li, linux-mm, kernel-janitors, linux-kernel, Andrew Morton,
Christoph Lameter, David Rientjes, Joonsoo Kim, Pekka Enberg
On Sun, Jun 28, 2020 at 01:17:59PM +0200, Markus Elfring wrote:
> > kmalloc(1024, GFP_HIGHUSER) can allocate memory normally,
> > kmalloc(64*1024, GFP_HIGHUSER) will cause a memory leak,
>
> Would you like to explain the influence of the selected allocation size
> in a different way?
Markus, this is not useful. Please stop.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-06-28 16:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-28 11:17 [PATCH] mm: Free unused pages in kmalloc_order() Markus Elfring
2020-06-28 16:35 ` Matthew Wilcox
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox