Re: [RANT][PATCH] sched_ext: Fix stale fair load weight after renice under SCX

From: Steven Rostedt

Date: Fri Dec 04 2026 - 13:47:37 EST


On Fri, 4 Dec 2026 10:06:07 -0800
Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx> wrote:

> On Fri, 4 Dec 2026 at 06:35, Steven Rostedt <rostedt@xxxxxxxxxxx> wrote:
> >
> > I didn't write this patch. Putting my name on it is exactly the same as
> > going to ChatGPT and having it create a picture and say that I drew it.
>
> Not exactly. I think the real issue is: "who takes responsibility"

But isn't that what the Signed-off-by is for? I've taken patches from
junior engineers before where they get the credit in the From (and
signed-off-by as well) but I have to add the Signed-off-by myself if I'm to
push it. That's exactly how I see this here. I'm taking responsibility and
sign off on it, but I still feel it's lying if the commit has:

Author: Steven Rostedt <rostedt@xxxxxxxxxxx>

>
> When you paint a picture, there's no "responsibility" involved. It is
> what it is. It has no other function than being pretty, and there's no
> "maintenance" of the end result.

But Author is (to me anyway) about credit. I've even done major changes to
a patch someone submitted and kept their From line because I want them to
have credit for the original idea. I make sure the change log is very clear
on what changes I have done, so yes, the responsibility is still on me for
the changes I make.

>
> That's very different with kernel patches.
>
> When you send out a patch, I think the important part is not how you
> generated it, but whether you take responsibility for it.
>
> Maybe you generated it with claude. Maybe you used 'sed' or
> 'coccinelle'. Or maybe you craftyed it carefully by hand and it's an
> all-natural and organic human-made patch. But regardless, it's your
> work.

What made me see this as different than the few times I used Coccinelle was
how little work I did. My interactions were pretty much exactly like what I
do for an engineer I mentor. I simply told it do something and then I
reviewed the result.

With Coccinelle or even a sed script, I have to write the commands just
like I write code for. If I'm off a little, it screws up. I can't say, "Oh
Coccinelle, I didn't mean that, could you try this way instead?". No, when
the output from Coccinelle is wrong, I usually spend a few hours on how to
debug the script.

That is, Coccinelle and sed are just extensions of coding. I do not see AI
as the same. You do not need to be nearly exact with AI as you do when creating
a Coccinelle script. The work with Coccinelle and sed requires about the
same amount of skill as programming itself.

Also, Coccinelle and sed are both just pattern matching and replacing. It's
not saying "hey I found a bug, let me write it, let me test it, let me
create the change log with the test results".

That's a HUGE difference.

>
> And yes, I can find patches from you that were generated with either
> sed and coccinelle, and you verified the end result, and you sent them
> out as you.
>
> There was no 'Steven Rostedt (Coccinelle)' on those patches. You took
> ownership of them, and responsibility for them.

I would be happy to add that to give credit to Coccinelle ;-)

But it didn't bother me as much because of the amount of work I put in to
write the Coccinelle script. And even after running it, I still had to
check every location and even fix where it missed.

Yeah, I need to check AI too, but it's more likely to find more locations
that were missed then I would have.

>
> And that's exactly how it should be.
>
> Saying so in the commit message is obviously fine - particularly if
> you don't necessarily know the code and cannot vouch for the patch as
> much as if it was code you actually know intimately.
>
> But I don't think you should try to foist off authorship on a tool.
>
> Tool-assisted or not, you are the author, and you hopefully take
> responsibility for the patches you send out (or commit directly).

Yes, I 100% agree about responsibility of submissions and that's exactly
what I would do. What I take issue with, is the assumption that I did the
work. I honestly feel like I'm plagiarizing even if I give credit in the
change log.

When I submit it, I take 100% responsibility for it just like I do when I
submit a patch from someone I'm mentoring and add my Signed-off-by. I just
hate that it looks like I was the one with the talent to write the patch.
It really gives me a bad taste and I truly feel I'm doing something wrong.

It also doesn't help that I've been dealing with a lot of incoming patches
from people who are obviously not writing the code and just sending out
what their AI agents are creating.

I take pride in what I create, and I want it very much known (even in git
blame) what I created and what I took from somebody/something else.

-- Steve