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

From: Davidlohr Bueso
Date: Wed Apr 10 2019 - 13:23:04 EST


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.

2) I want to avoid the extreme case that there are more than 32k readers
in the wait queue and make the count overflow.

But in this case the readers are already on the queue.

Thanks,
Davidlohr