From: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
To: chenqiwu <qiwuchen55@gmail.com>
Cc: Andrew Morton <akpm@linux-foundation.org>,
Liam.Howlett@oracle.com, vbabka@suse.cz, linux-mm@kvack.org
Subject: Re: [PATCH] mm: move get_vma_name() from procfs to mm tree
Date: Tue, 1 Oct 2024 12:09:11 +0100 [thread overview]
Message-ID: <d1258ce9-fad9-4138-87d0-687b82b62961@lucifer.local> (raw)
In-Reply-To: <20241001105525.GA5735@rlk>
On Tue, Oct 01, 2024 at 06:55:25PM GMT, chenqiwu wrote:
> On Mon, Sep 30, 2024 at 11:05:26AM -0700, Andrew Morton wrote:
> >
> > We will want to see (and review) the code which calls this function and
> > that code should be part of the mainline kernel tree.
> >
> The similar code can see perf_event_mmap_event() in kernel/events/core.c,
> and current talking topic:
> https://patchwork.kernel.org/project/linux-mm/patch/20240924074341.37272-1-qiwu.chen@transsion.com/
This doesn't explain why you're exporting things... I am very much not in favour
of that, sorry.
All the same objections apply as I said there.
We already have dump_mm() for dumping this kind of thing, and yes that requires
CONFIG_DEBUG_VM and yes I think that's valid.
On panic it'd probably not be a great idea to try to take locks and walk this
data which might be corrupted or otherwise unavailable, seems very risky to me.
I don't really understand why you think this will help an unhandled page fault
in init?
But yeah I'm not in favour of this patch, still.
Also please, please do not put VMA/mm-related code that iterate through VAMs
etc. in random other files, they _all_ belong in mm files.
I'll reply there I guess.
>
> Thanks
> Qiwu
>
next prev parent reply other threads:[~2024-10-01 11:09 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-29 9:32 qiwu.chen
2024-09-30 18:05 ` Andrew Morton
2024-10-01 10:55 ` chenqiwu
2024-10-01 11:09 ` Lorenzo Stoakes [this message]
2024-09-30 19:03 ` Lorenzo Stoakes
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=d1258ce9-fad9-4138-87d0-687b82b62961@lucifer.local \
--to=lorenzo.stoakes@oracle.com \
--cc=Liam.Howlett@oracle.com \
--cc=akpm@linux-foundation.org \
--cc=linux-mm@kvack.org \
--cc=qiwuchen55@gmail.com \
--cc=vbabka@suse.cz \
/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