Linus Torvalds's first LLM-assisted patch series
TL;DR Highlight
Linus posted an LLM-assisted 10-patch series giving an order-of-magnitude read() speedup, with a race already found.
Who Should Read
A backend or systems developer deciding whether AI coding tools hold up on a large real-world codebase
Core Mechanics
- Linus used an LLM for a patch series
- He said at the Maintainers Summit he was using an LLM on a longstanding problem.
- He then posted a ten-patch series for review.
- Hot folios get their release delayed past an RCU period
- A folio (kernel page-cache unit) that is hot is marked to be released after an RCU period.
- That lets both the lookup and the data access run inside an RCU-protected region (lock-free read sync).
- The fast path needs no refcount
- If the user copy causes no page faults, the data is read entirely under RCU.
- No refcount is taken on that path.
- A read()-heavy benchmark got an order of magnitude faster
- The article reports an order-of-magnitude speedup.
- It gives no baseline or exact figure.
- Review already found a race condition
- Reviewers spotted a race condition in the code.
- The article says more work is needed.
Community Reactions
- Commenters quoted a commit message disclosing LLM use
- A comment quotes the draft branch's empty commit saying code, tests, review and first draft were done with Claude Code under Linus's direction.
- It says measurements ran on his own machine.
- An opinion that the diffs are small and readable
- One commenter looked at the diffs and found them moderately sized and readable.
- They contrasted this with the usual 2k-line LLM commits.
- Experience that Claude Code often produces code that looks right but is broken
- One commenter says this happens all the time.
- They usually find out via local debugging or Sentry alerts.
- Reactions that outcomes depend on who uses the tool
- One comment compared it to an excavator in a pro's versus a layman's hands.
- Others worried beginners will think that if Linus did it, they can too.
How to Apply
- Add a concurrency checklist to your reviews today
- When reviewing LLM-written PRs, check for race conditions first.
- Paste a diff into the prompt below for a concurrency review.
- Split LLM changes into small commits
- Tell the LLM to make one change per patch.
- Keep each one small enough for a human to review.
- Record LLM use in commit messages
- Add a PR template field for the tool used and what a human verified.
- Note the environment where you ran measurements.
Try It
# Paste into Claude or ChatGPT (simplified version of the "LLM writes, human review finds the race" idea)
You are a concurrency-bug reviewer. In the diff below, find race conditions, release-timing issues in lock-free read sections, and missing ordering guarantees.
{{diff}}
For each issue, give file/line, the scenario (thread A/B order), and a fix in a table. If none, explain why.
Next to try: ask it to split the same diff into smaller patches and compare which is easier to review.Terminology
Related Papers
Gemini 4 Neon is the new #1 on the Models Engineering Index
Gemini 4 Neon ranks first on the Models Engineering Index with 68.0, combining multiple benchmarks.
LLMs can read and write executables byte by byte from a hex dump
Given only a hex dump and no tools, an LLM analyzed, patched and wrote working executables.
Claude was trained on protein sequences at scale
Next-amino-acid tests on obscure proteins show only the latest Claude models predict them
Remembered as Brief: Stored Preferences SilentlyRemove Decision-Critical Information
A stored 'keep it short' preference silently drops warnings; listing must-know points first restores content.
All AI-generated code should be Open Source
A blog argues AI-generated code should be open source; most HN commenters disagreed.
What thousands of conversations look like inside a language model
Mapping Qwen3-1.7B states showed Chinese sitting apart from English, while German and Croatian overlapped it.
AI, activity, and outcomes in software engineering
AI sped up writing code, but shipping speed did not rise as much, says a talk
LLMs Play Zachtronics' TIS-100
16 LLMs played TIS-100 and set 133 new Pareto frontier points across 18 puzzles