On 18 Oct 2022 22:49:02 -0400 Waiman Long <longman@xxxxxxxxxx>That may not be true. As long as there are still waiters in the wait queue, a reader has to go into the slow path and queued up in the wait queue. This is is to prevent a continuous stream of readers from starving writers in the wait queue.
On 10/18/22 22:29, Hillf Danton wrote:Subsequent readers may take rwsem without going the slow path after a
If handoff grants rwsem to a read waiter then the read fast path may revive.I don't quite understand what you mean by "read fast path may revive".
read waiter is granted.
OTOH even after the check for single BIAS, another reader may come in
and add its BIAS to count, which builds the same count as multiple
readers came in before the check.