VOOZH about

URL: https://www.phoronix.com/news/Linux-Sched-Ext-Restructured

⇱ "Disgusting" Linux sched_ext Source Code Restructured Following Complaint By Linus Torvalds - Phoronix


👁 Phoronix

"Disgusting" Linux sched_ext Source Code Restructured Following Complaint By Linus Torvalds

Written by Michael Larabel in Linux Kernel on 23 June 2026 at 08:23 PM EDT. 41 Comments
Last week the main set of sched_ext changes were merged for Linux 7.2 that included continued work on sub-scheduler support. While Linus Torvalds didn't object to any of the features being worked on for this extensible scheduler framework that relies on user-space BPF programs, he was frustrated by the layout of the new C source files and remarked, "please don't do this disgusting thing...proper hierarchical filesystems have been available since 1965."

Linus Torvalds did not like in last week's sched_ext pull request that several new ext_ pre-fixed C code and header files were made in kernel//sched as opposed to just making a new sub-directory of kernel/sched like kernel/sched/ext/ to avoid prefixing the many individual files.

Torvalds merged the code but commented:
"> create mode 100644 kernel/sched/ext_arena.c
> create mode 100644 kernel/sched/ext_arena.h
> create mode 100644 kernel/sched/ext_cid.c
> create mode 100644 kernel/sched/ext_cid.h
> create mode 100644 kernel/sched/ext_types.h

Please don't do this disgusting thing.

There's a reason we have subdirectories: it's to group files together and separate them out

Using name prefixing instead of directories is disgusting and wrong. If you have this many random sched-ext files, it damn well should be cleaned up and not be this kind of mess.

I've pulled this, but under protest. Proper hierarchical filesystems have been available since 1965."

In turn sent out earlier today was a new pull request to reorganize the source tree for sched_ext in making use of kernel/sched/ext/ instead of littering a bunch of ext_* files in the common scheduler directory.

👁 sched_ext restructured


Linus Torvalds already merged the code to restructure sched_ext files.

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.