Re: [PATCH-tip v2 06/12] locking/rwsem: Wake up almost all readers in wait queue

From: Waiman Long
Date: Wed Apr 10 2019 - 13:53:11 EST


On 04/10/2019 01:22 PM, Davidlohr Bueso wrote:
> On Wed, 10 Apr 2019, Waiman Long wrote:
>> There are 2 major reasons why there is a limit.
>>
>> 1) It will be unfair to the task that needs to spend so much of its own
>> CPU time to wake up too many readers.
>
> This has never been a problem before.
>

In real workloads, you seldom have more than a couple dozens of readers
waiting in the queue.

Cheers,
Longman