mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] sched/psi: Preserve RT poll notifications
@ 2026-10-19 10:46 Hui Su
  2026-10-19 10:46 ` [PATCH 1/2] sched/psi: Preserve pressure accounting across RT trigger registration Hui Su
  2026-10-19 10:46 ` [PATCH 2/2] sched/psi: Deliver pending RT poll events after polling expires Hui Su
  0 siblings, 2 replies; 3+ messages in thread
From: Hui Su @ 2026-10-19 10:46 UTC (permalink / raw)
  To: hannes, surenb, peterz, mingo, juri.lelli, vincent.guittot
  Cc: dietmar.eggemann, rostedt, bsegall, mgorman, vschneid,
	kprateek.nayak, linux-kernel, sh_def

Privileged RT trigger registration can consume pressure accounting before
existing triggers evaluate it. A separate worker shutdown path can leave a
rate-limited event pending after active polling expires.

Patch 1 preserves registration-time pressure changes for existing triggers
and advances the consumed total after due evaluation.

Patch 2 derives pending notification deadlines from the trigger list instead
of storing a duplicate deadline in psi_group. It preserves pending trigger
windows, resumes active polling when watched pressure returns, and lets the
worker return to idle after the notification is delivered.

Testing:
- x86_64 KASAN/lockdep KUnit: candidate PSI 10/10 passed; baseline PSI had
  1/10 pass and 9 candidate-dependent failures. Refcount tests passed 4/4
  on both sides; no KASAN report.
- QEMU cgroup PSI_POLL: baseline pressure qualified but the second long event
  was absent by 2500 ms; the worker log showed pending=1 and timer_pending=0.
  Candidate delivered the second event after 2004.4 ms; pending cleared and
  the worker returned to idle. Both runs had zero quiet-period pressure and
  no unexpected third event.

Hui Su (2):
  sched/psi: Preserve pressure accounting across RT trigger registration
  sched/psi: Deliver pending RT poll events after polling expires

 include/linux/psi_types.h |   1 +
 kernel/sched/psi.c        | 206 +++++++++++++++++++++++++++++---------
 2 files changed, 157 insertions(+), 50 deletions(-)


base-commit: b99b7f60c5b473d374c68b53753153b4aa9e0702
-- 
2.55.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-10-19 10:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-19 10:46 [PATCH 0/2] sched/psi: Preserve RT poll notifications Hui Su
2026-10-19 10:46 ` [PATCH 1/2] sched/psi: Preserve pressure accounting across RT trigger registration Hui Su
2026-10-19 10:46 ` [PATCH 2/2] sched/psi: Deliver pending RT poll events after polling expires Hui Su

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®