[lkml]   [2019]   [Apr]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH-tip v2 06/12] locking/rwsem: Wake up almost all readers in wait queue
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.


 \ /
  Last update: 2019-04-10 19:23    [W:0.064 / U:0.096 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site