linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: SeongJae Park <sj@kernel.org>
To: Pedro Falcato <pfalcato@suse.de>
Cc: "SeongJae Park" <sj@kernel.org>,
	"Andrew Morton" <akpm@linux-foundation.org>,
	"Lorenzo Stoakes" <lorenzo.stoakes@oracle.com>,
	"Alex Deucher" <alexander.deucher@amd.com>,
	"Mikulas Patocka" <mpatocka@redhat.com>,
	"Christian König" <christian.koenig@amd.com>,
	"David Hildenbrand" <david@redhat.com>,
	amd-gfx@lists.freedesktop.org, linux-mm@kvack.org
Subject: Finding mm patches to review before those are pulled into the mainline (was "Re: [PATCH v2] fix AMDGPU failure with periodic signal")
Date: Wed,  7 Jan 2026 22:26:35 -0800	[thread overview]
Message-ID: <20260108062637.82125-1-sj@kernel.org> (raw)
In-Reply-To: <f6pged4wdv2qrpwn6uiqeampyi4m64xoey26eudw56k3txu6oi@3uwgwbyfrlwm>

On Tue, 6 Jan 2026 21:52:25 +0000 Pedro Falcato <pfalcato@suse.de> wrote:

[...]
> I understand your point. I don't think anyone wants to see patches falling
> through the cracks. But we also don't want patches to get applied without
> any review.

I can also clearly see both Andrew and Lorenzo are trying their best to make
Linux kernel better with only good faiths.  I always appreciate their such
efforts.  And both their opinions make sense to me in their ways.

> 
> Perhaps it's time to deploy something like Patchwork to help track
> outstanding patches?

Nooo...  I'm too dumb and lazy to learn how to use Patchwork...

I believe we always have rooms to improve, though.  One way to resolve concerns
raised here would be asking Andrew, someone, or some tools pinging relevant
reviewers of patches that Andrew wants to add to mm tree.  But I think that
might be too much request for a signle human, especially for mm, which is a
huge subsystem that many reviewers exist.  And because the reviewers have their
own tastes, the solution may not fit very well to all the reviewers.  For
example, someone might dislike directly getting such notification mails in
their inbox.

In the past, I actually considered making and running a tool that scans patch
mails that not Cc-ing relevant reviewers based on get_maintainers.pl and
forward those to the missing reviewers.  But I didn't make it because I worried
polluting someone's inbox.  I should also confess I worried my electricity bill
:)

As an alternative way, I was wondering what if reviewers consider mm tree as a
kind of compacted and curated version of the mailing list.  That is, using the
mm tree as the useful place that we can more easily find patches that we need
to review asap.  If it turns out there is no time to review immediately, the
reviewer can always ask Andrew to wait.

Finding such patches from mm tree may be much easier than doing that from the
mailing list, since the number of patches to look for is much smaller, and
writing scripts for that would be much easier, since we can use our favorite
tool, git.  For example, I just wrote below simple script to find such patches
for DAMON from mm tree:


'''
#!/bin/bash

if [ $# -ne 1 ]
then
        echo "Usage: $0 <commits>"
        exit 1
fi

commits=$1

review_missed=""

for commit in $(git log --reverse "$commits" --pretty=%H)
do
        commit_content=$(git show "$commit")
        if ! echo "$commit_content" | grep damon --quiet
        then
                continue
        fi
        if echo "$commit_content" | grep "Signed-off-by: SeongJae Park" --quiet
        then
                continue
        fi
        if ! git show "$commit" | grep "Reviewed-by: SeongJae Park" --quiet
        then
                review_missed+="$commit "
        fi
done

for commit in $review_missed
do
        desc=$(git log -1 "$commit" --pretty="%h (\"%s\")")
        echo "review missed for $desc"
done
'''

And it indeed found some interesting patches for me:

'''
$ bash commits_to_review.sh mm-stable..mm-new
review missed for cb844296e68a ("mm: introduce CONFIG_ARCH_HAS_LAZY_MMU_MODE")
review missed for 7bc3a776d611 ("mm: add basic tests for lazy_mmu")
review missed for e8dd7a6b54a8 ("mm/damon: fix typos in comments")
review missed for 999d5100ccf7 ("memcg: rename mem_cgroup_ino() to mem_cgroup_id()")
'''

The first two patches are false positives of the script, but the last two
patches were somewhat I actually needed to take more care.  Thanks to Andrew
adding Link: tag to each patch on mm tree, taking the followup action was also
super easy and smooth for me.  I like the results more than I expected, and
decided to keep using the script.

And I now realize this approach would also work for people who didn't list
their name on MAINTAINERS but still looking for patches to review.

Even though the idea and the script may not work for others, I just wanted to
share this, only hoping it helps finding another idea, whatever other than the
Patchwork [1].

[1] No offence but a joke, Pedro ;)  Sorry if it was not funny.


Thanks,
SJ

[...]


  reply	other threads:[~2026-01-08  6:26 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-07 17:48 [PATCH v2] fix AMDGPU failure with periodic signal Mikulas Patocka
2026-01-02 19:02 ` Lorenzo Stoakes
2026-01-02 19:08   ` Lorenzo Stoakes
2026-01-03 17:58     ` Andrew Morton
2026-01-05 10:43       ` Lorenzo Stoakes
2026-01-04 21:12   ` Mikulas Patocka
2026-01-05 10:45     ` Lorenzo Stoakes
2026-01-05 10:59       ` Lorenzo Stoakes
2026-01-02 19:15 ` Lorenzo Stoakes
2026-01-06 11:51 ` Lorenzo Stoakes
2026-01-06 18:12   ` Andrew Morton
2026-01-06 18:24     ` Lorenzo Stoakes
2026-01-06 20:59       ` Andrew Morton
2026-01-06 21:52         ` Pedro Falcato
2026-01-08  6:26           ` SeongJae Park [this message]
2026-01-08  9:05             ` Finding mm patches to review before those are pulled into the mainline (was "Re: [PATCH v2] fix AMDGPU failure with periodic signal") Lorenzo Stoakes
2026-01-09  1:18               ` SeongJae Park
2026-01-09 13:55                 ` Lorenzo Stoakes
2026-01-09 14:16             ` David Hildenbrand (Red Hat)
2026-01-09 14:26               ` Lorenzo Stoakes
2026-01-07 12:33         ` [PATCH v2] fix AMDGPU failure with periodic signal 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=20260108062637.82125-1-sj@kernel.org \
    --to=sj@kernel.org \
    --cc=akpm@linux-foundation.org \
    --cc=alexander.deucher@amd.com \
    --cc=amd-gfx@lists.freedesktop.org \
    --cc=christian.koenig@amd.com \
    --cc=david@redhat.com \
    --cc=linux-mm@kvack.org \
    --cc=lorenzo.stoakes@oracle.com \
    --cc=mpatocka@redhat.com \
    --cc=pfalcato@suse.de \
    /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