Linus Torvalds blasts huge Linux code update, merges it anyway
Linus Torvalds criticized a 41,000-line pull request for Linux, then merged it over objections.
Linus Torvalds, the creator of Linux, called out a major code update this week after a pull request landed on his desk with more than 41,000 new lines. The update, sent by long-time ext4 file system maintainer Theodore Ts’o, arrived late in the development cycle for Linux 7.4-rc5. Torvalds fumed over both the timing and the size of the proposed changes, but in the end decided to merge the code.
Large update draws criticism
The pull request contained 94 commits and affected 68 files, adding a total of 41,204 lines. Torvalds didn’t hold back in his response. “STOP THINKING THAT YOU, OR AI, NEVER ADD BUGS WHEN YOU FIX SOMETHING. There’s a reason we have release candidates and several weeks of calming things down,” he wrote. He said it was hard to understand why some people don’t grasp that such a large set of changes could introduce new issues, even if much of the code isn’t compiled or is labeled as a fix.
Torvalds also took aim at the use of AI in code contributions. He told Ts’o to “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.” He said a pull request of this size should not appear so late in the release cycle, and that calling something a fix does not automatically make it safe.
Maintainer apologizes
Theodore Ts’o, who has maintained ext4 since the 1990s, quickly responded. “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.”
Torvalds said he still had "serious reservations and some bad conflicts," but chose to merge the changes anyway. He warned that if something like this happens again, he’ll simply ignore the request next time. He restated his long-standing rule against filling release candidates with what he called "junk."
AI and developer responsibility
Torvalds has made it clear in the past he isn’t against using AI. Back in July, he said, “AI is a tool, just like other tools we use. And it’s clearly a useful one.” He now uses AI in his own workflow. His main concern is that developers using AI should apply it carefully, to avoid flooding maintainers with unnecessary or poorly considered changes.
“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,” Torvalds said earlier this year.
The Linux kernel development process has long depended on clear procedures and caution, especially late in the release cycle. Release candidates are supposed to be a time for testing and bug fixes, not for adding large swathes of new code. Torvalds’s message was blunt: break that rule, and you’ll hear about it.