Re: [PATCH v1] proc: limit schedstate node write operation

From: Matthew Wilcox
Date: Sun Apr 24 2022 - 15:23:35 EST


On Sun, Apr 24, 2022 at 03:23:54PM +0000, Junwen Wu wrote:
> From: Matthew Wilcox <willy@xxxxxxxxxxxxx>
>
> On Sat, Apr 23, 2022 at 02:31:04AM +0000, Junwen Wu wrote:
> > Whatever value is written to /proc/$pid/sched, a task's schedstate data
> > will reset.In some cases, schedstate will drop by accident. We restrict
> > writing a certain value to this node before the data is reset.
>
> ... and break the existing scripts which expect the current behaviour.
>
>
> Hi, Matthew,can you describe it in more detail.

What detail do you need? Existing scripts depend on the existing
behaviour. Your change to the behaviour will break them. That's not
allowed, so your patch is rejected.