Re: [RFC PATCH v2 0/6] rwsem: priority boost for holders blocking high-priority waiters

From: Peng Huang

Date: Tue Dec 01 2026 - 16:10:24 EST


On Tue, Dec 01, 2026 at 11:43:10PM +0300, Kayra Cizmeci wrote:
> Even Proxy Exec. wouldn't help that much. You can't make a sleeping
> task run earlier while it is sleeping.

Right, that's why it's under non-results. This only helps when the
holder is runnable and preempted, not blocked on I/O.

> But aside from that if we really want this, I think it would be better
> to try to make this compatible with Proxy Exec. rather than
> trying to implement a new mechanism, no :-)?

For writers I agree, once PE supports multi-rq and rwsems. That's why
I asked if we should leave writers to PE and only track readers.

For readers it's harder: there is no single owner pointer (sem->count
only keeps a count) and multiple readers can run concurrently, so PE
has no single owner to donate to. And the series already works with
CONFIG_SCHED_PROXY_EXEC=y.

Thanks,
Peng