Linus Torvalds is Angry Again, This Time With ext4 Dev
Theodore Ts'o, who maintains ext4, sent Linus Torvalds a pull request of 94 commits for Linux 7.4-rc5, and the merge commit that followed adds 41,204 lines across 68 files.
Ts'o said KUnit tests make up most of the added code and exist to help validate patches that AI generates, and that most of the bug fixes in the pull were AI generated as well.
What was in the pull that got Torvalds all worked up?
Before we dive into that, know that the ext4 filesystem grew out of ext3 and was built to be reliable and to scale to large storage, including filesystems larger than 16TB.
Whereas KUnit is the kernel's unit testing framework, where tests are written in C and run against kernel code at boot or as a module.
The tests in Ts'o's pull account for 22 of the 68 changed files in the merge commit . The rest is bug fixes and three minor performance changes.
One performance change spreads the inodes of files in sibling directories over a flex group 's block groups and speeds up parallel file creation. Another moves the orphan list fields off a shared cache line, and a third skips holes when replaying fast commits for sparse files.
The bug fixes include data loss cases, such as fsync'ed data lost after a journal flush and data lost during ext3 inode migration.
Others cover stale data after a failed zeroout, use-after-free bugs, out-of-bounds accesses on corrupted filesystems and a readdir problem with large directories on 32-bit kernels.
Torvalds objected to 41,197 lines of code being added so late in release cycle
Kernel development works in cycles, with new code going in during a merge window of about two weeks. The weekly release candidates that follow, called " rc " builds, are meant for fixes, and a cycle usually reaches somewhere between rc6 and rc9 .
Torvalds objected that a pull of this size belongs in the merge window and that calling something a fix does not make it fit for an rc.
He said more than 41,000 added lines can cause new problems even when most of them are test




Comments
No comments yet. Be the first to share your thoughts.