Chips & Compute

Torvalds rejects 41,204-line Linux 7.4 patch, then merges it

Linux creator Linus Torvalds rejected a 94-commit, 41,204-line ext4 pull request as release-candidate clutter, then merged it after Theodore Ts’o offered to defer the tests.

Linus Torvalds loses it over a 41,000-line Linux kernel ‘fix’ – then merges it anyway
Linus Torvalds loses it over a 41,000-line Linux kernel ‘fix’ – then merges it anywayGodfrey_atima / pixabay
By James Calloway6 min read

Why it matters

  • A 94-commit pull request for Linux 7.4-rc5 added 41,204 lines across 68 files.
  • Torvalds’s complaint quoted 41,197 insertions, while the report’s headline count was 41,204 lines.
  • Theodore Ts’o has been a kernel developer and maintainer since 1991.
  • Torvalds merged the request despite serious reservations and bad conflicts, and said he would ignore a repeat.
  • Ts’o said the tests were on a separate branch and offered to defer them to the merge window.

Linus Torvalds rejected a 94-commit pull request (PR) spanning 68 files and 41,204 lines for Linux 7.4-rc5, then merged it despite “serious reservations and some bad conflicts.” The request came from Theodore Ts’o, the ext4 file system (Linux’s file-storage subsystem) maintainer and a kernel developer since 1991.

ZDNET said Ts’o sent it late in the release-candidate (RC) phase, when Torvalds expects fixes rather than substantial new code. The stakes were release stability. Torvalds argued that calling a change a fix does not prevent it from creating new bugs, particularly during the weeks intended to test and settle a release.

Torvalds wrote just before Thanksgiving:

“STOP THINKING THAT YOU – OR AI – NEVER ADD BUGS WHEN YOU FIX SOMETHING.

There’s a why we have release candidates and several weeks of calming things down.”

He added: “Yes, I’m pissed off. Why the hell people have such a hard time understanding such a simple concept is hard to understand.” ZDNET described the outburst as an old-time rant, but the technical objection was specific: late-stage scale could enlarge the burden of finding new defects.

What made the 41,204-line request unacceptable?

Torvalds focused on the request’s insertion count, which made review and late-stage risk harder to control:

“If you think that ‘41,197 insertions’ is ok and cannot introduce new problems just because most of it won’t be compiled or because they were fixes for other things, you are full of crap.”

ZDNET’s lead figure is 41,204 lines across 68 files, while Torvalds’s quoted warning uses 41,197 insertions. The account does not reconcile the seven-line difference, leaving the exact disputed count slightly unclear.

That discrepancy does not change the larger objection. Torvalds rejected the idea that uncompiled code or fixes for other areas made the volume harmless.

He also said that calling something a fix did not make it one. His instruction to the maintainer was more direct:

“And tell your AI companion to get its act together, and do any new development and test cases ON A SEPARATE DAMN BRANCH, so that it can be merged during the MERGE WINDOW.”

That directive put development and test cases on a separate branch until the merge window, the later period for accepting larger changes. Torvalds had already said a request of that size belonged there, rather than in an RC build.

His objection combined code volume, release timing and maintainer workload. In plain terms, he treated scale and timing as quality-control issues, not paperwork.

Why did Torvalds merge the change anyway?

Ts’o quickly replied with an apology and a concrete way to separate the work:

“Yeah, sorry. The tests were on a separate branch, and I deliberately put it at the end so if you had objected, I could very easily drop them from the pull request and just send you the commits. So if you want to unpull, I can send you a revised pull request, and I’ll save the tests for the merge window.”

The reply showed that the test commits existed on their own branch and sat at the end of the submitted request, where Ts’o said he could remove them. Torvalds still objected partly, but merged the request anyway.

ZDNET distilled Torvalds’s position as: “Thou shalt not pack the RCs with junk.” The report called that rule ancient, reflecting a long-standing division between release-candidate fixes and new development.

ZDNET noted that Torvalds had not merely confronted a newer developer; this time he targeted Ts’o, a veteran. Ts’o had maintained ext4 for decades, while Torvalds had challenged kernel developers even longer, and the two usually get along well. The report explicitly rejected the idea that this was a feud.

Torvalds said that if another request of this kind arrived, he would simply ignore it. Ts’o’s response kept the patch mergeable without resolving Torvalds’s broader objection. The episode ended with code accepted and the process argument left intact.

What does Torvalds demand from AI-assisted patches?

Torvalds is not objecting to artificial intelligence (AI) as a category. In July, he said: “AI is a tool, just like other tools we use. And it’s clearly a useful one.” ZDNET reported that he now uses it himself to write Linux kernel code.

His position accepts the tool while rejecting unsupported volume. Torvalds said poor AI-assisted submissions can add work and bugs to a maintainer workload that he already considers overly heavy.

In May, he set a standard for developers who find a bug with AI:

“If you found a bug using AI tools, the chances are somebody else found it too. If you actually want to add value, read the documentation, create a patch too, and add some real value on top of what the AI did. Don’t be the drive-by ‘send a random report with no real understanding’ kind of person.”

That standard asks developers to understand the code, produce a patch and improve on the tool’s output. It also rules out a bare report with no demonstrated understanding.

Torvalds’s practical instructions reduce to four conditions:

  • Keep new development and test cases on a separate branch.
  • Hold that work until the merge window.
  • Read the documentation and create a patch.
  • Add real value rather than sending a drive-by report.

ZDNET’s account leaves a material gap. It does not identify which lines, if any, came from AI, or whether Ts’o used AI for the submitted development, the tests, or both. It also cites no specific defective test or code path.

The evidence therefore supports a process complaint, not a finding that AI-generated code caused a particular defect. The size, timing and conflicts drove the objection; the account does not independently test the patch’s correctness.

Torvalds’s position permits AI assistance but makes the developer responsible for every submission. In this account, AI output is raw material rather than a substitute for review.

What changes before the merge window?

ZDNET’s account records no new formal AI policy for Linux kernel development. It records a workflow expectation: large development batches and their tests belong on a separate branch until the project can accept them in the merge window.

Ts’o’s response demonstrated a practical fallback. He could remove the tests, send a revised request and retain the test commits for later, reducing the immediate review burden without discarding the work.

Torvalds’s warning provides the sharper consequence. Another oversized request during an RC could receive no review at all, according to his statement, because he would ignore it.

The next concrete test is whether maintainers keep large development batches and their tests separate before the merge window. If they do not, Torvalds has said he may simply ignore the next late request.

Original: lore.kernel.org

Share this article:

More from James Calloway

James Calloway

Show full bio

News editor covering people, launches and day-to-day practice in artificial intelligence and machine learning at AI In Context.

932 articles

Related articles

  1. Linus Torvalds shipped Linux kernel patches written with Claude Code
  2. Linux 7.4-rc2: BPF fixes may be outrunning new AI-found bugs
  3. Microsoft, FAA, Banks and NSA Outages Signal AI Vulnerability Surge
  4. GitHub and Microsoft Pilot Turns 9,791 AI Findings Into 55 Fixes
  5. OpenAI explains how its own tests missed GPT-4o's sycophancy problem

« Previous article