mirror of
https://github.com/torvalds/linux.git
synced 2026-11-20 13:03:48 +00:00
get_maintainer: only use THE REST as a fallback
Patch series "get_maintainer: stop sending every patch to LKML", v3. LKML has become mostly a firehose of patches that are already going to a subsystem list. The reason is THE REST: it matches every file in the tree, so get_maintainer.pl adds [email protected] to every single patch. During the week of Oct 1-7, 2026: - LKML carried 13,641 messages (~1,950/day), 90% of which were also sent to at least one other list; - with ~2,100 subscribers, that is about 29 million deliveries per week for LKML alone. This problem is becoming urgent and untenable. The increased volume of patches sent using AI tooling has resulted in dramatically higher delivery queues and if this change is not implemented, we will have to start force-unsubscribing addresses that do not show any developer activity or use similar drastic measures. This issue came up during the 2026 Maintainer Summit and the consensus was that "always include linux-kernel for every patch" was never the intent. This series makes THE REST a fallback as initially intended: it is only added for a file when no other matching MAINTAINERS section provides a mailing list that get_maintainer.pl would actually output for it. Patch 2 updates submitting-patches.rst, which currently tells submitters to send every patch to LKML. Several v1 reviewers asked for a catch-all list that would keep carrying every patch for those who want to follow all kernel development. That is a worthwhile discussion, but it is separate from this series, which only restores THE REST to its original role. Translation maintainers are Cc'd because the it_IT, ja_JP, sp_SP, zh_CN and zh_TW versions of submitting-patches.rst carry the same "send every patch to LKML" advice and will need a follow-up update once the English text is settled. This patch (of 2): THE REST matches every file in the tree via "F: *" and "F: */", so get_maintainer.pl currently adds [email protected] to every patch, regardless of whether the touched files already belong to a subsystem with its own mailing list. Only add THE REST for a file when no other matching section provides a mailing list that get_maintainer.pl would actually output. Lists marked "subscribers-only" are omitted unless --s is given, and lists marked "moderated" are omitted with --no-moderated, so such lists don't count as a destination in those cases. Files that match no section, or only sections without such a list, still fall back to THE REST, so every patch keeps reaching at least one known-public mailing list. Link: https://lore.kernel.org/20261113-get-maintainer-the-rest-fallback-v3-0-36ee5a3e8d13@linuxfoundation.org Link: https://lore.kernel.org/20261113-get-maintainer-the-rest-fallback-v3-1-36ee5a3e8d13@linuxfoundation.org Signed-off-by: Konstantin Ryabitsev <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Acked-by: Joe Perches <[email protected]> Cc: Jonathan Corbet <[email protected]> Cc: Shuah Khan <[email protected]> Cc: Randy Dunlap <[email protected]> Cc: Federico Vaga <[email protected]> Cc: Akira Yokosawa <[email protected]> Cc: Carlos Bilbao <[email protected]> Cc: Avadhut Naik <[email protected]> Cc: Alex Shi <[email protected]> Cc: Yanteng Si <[email protected]> Cc: Dongliang Mu <[email protected]> Cc: Chen-Yu Yeh <[email protected]> Cc: Weijie Yuan <[email protected]> Cc: <[email protected]> Cc: Petr Pavlu <[email protected]> scripts/get_maintainer.pl | 43 ++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+)
This commit is contained in:
committed by
Andrew Morton
parent
5158f371fa
commit
e00dcd6e54
@@ -959,6 +959,15 @@ sub get_maintainers {
|
||||
$tvi = $end + 1;
|
||||
}
|
||||
|
||||
# THE REST matches every file, so only fall back to it when no
|
||||
# other matching section provides a mailing list for this file
|
||||
# that we would actually output with the current options.
|
||||
my ($the_rest) = grep { get_section_name($_) eq "THE REST" } keys %hash;
|
||||
if (defined($the_rest) &&
|
||||
grep { $_ != $the_rest && section_has_list($_) } keys %hash) {
|
||||
delete $hash{$the_rest};
|
||||
}
|
||||
|
||||
foreach my $line (sort {$hash{$b} <=> $hash{$a}} keys %hash) {
|
||||
add_categories($line, "");
|
||||
if ($sections) {
|
||||
@@ -1295,6 +1304,40 @@ sub find_ending_index {
|
||||
return $index;
|
||||
}
|
||||
|
||||
sub get_section_name {
|
||||
my ($index) = @_;
|
||||
|
||||
return $typevalue[find_starting_index($index)];
|
||||
}
|
||||
|
||||
sub section_has_list {
|
||||
my ($index) = @_;
|
||||
|
||||
my $start = find_starting_index($index);
|
||||
my $end = find_ending_index($index);
|
||||
for (my $i = $start; $i < $end; $i++) {
|
||||
next if ($typevalue[$i] !~ m/^L:\s*(.*)/);
|
||||
my $list_additional = "";
|
||||
if ($1 =~ m/[^\s]+\s+(.*)$/) {
|
||||
$list_additional = $1;
|
||||
}
|
||||
return 1 if (list_is_selected($list_additional));
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
# Must match the list selection in add_categories()
|
||||
sub list_is_selected {
|
||||
my ($list_additional) = @_;
|
||||
|
||||
if ($list_additional =~ m/subscribers-only/) {
|
||||
return $email_subscriber_list;
|
||||
} elsif ($list_additional =~ m/moderated/) {
|
||||
return $email_list && $email_moderated_list;
|
||||
}
|
||||
return $email_list;
|
||||
}
|
||||
|
||||
sub get_subsystem_name {
|
||||
my ($index) = @_;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user