[PATCH RESEND v2 19/30] sched/psi: mark the pressure files permanent
sashiko-bot at kernel.org
sashiko-bot at kernel.org
Thu Nov 5 11:58:05 PST 2026
> /proc/pressure/* are created when psi initializes and never removed.
> Say so with PROC_ENTRY_PERMANENT, procfs then calls into them without
> pinning them, like it does for /proc/profile.
>
> That also takes care of a rule the files bent. psi_write() takes the
> seq_file's lock to serialize the triggers. A reader holds that lock
> while it copies to userspace, and now that procfs owns the seq_file it
> does that with the entry unpinned. So nothing that runs with the entry
> pinned may wait for that lock, and psi_write() ran pinned. Nothing ever
> waited for it since the files are never removed, but with the files
> permanent nothing runs pinned at all.
>
> Signed-off-by: Christian Brauner (Amutable) <brauner at kernel.org>
Sashiko has reviewed this patch and found no issues.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261104-work-procfs-fs-v2-0-319e0f9a8aae@kernel.org?part=19
More information about the kexec
mailing list