[PATCH v3 11/14] rwsem: implement support for write lock stealing on the fastpath

2013-05-07 Thread Michel Lespinasse
When we decide to wake up readers, we must first grant them as many read locks as necessary, and then actually wake up all these readers. But in order to know how many read shares to grant, we must first count the readers at the head of the queue. This might take a while if there are many readers,

[PATCH v3 11/14] rwsem: implement support for write lock stealing on the fastpath

2013-05-07 Thread Michel Lespinasse
When we decide to wake up readers, we must first grant them as many read locks as necessary, and then actually wake up all these readers. But in order to know how many read shares to grant, we must first count the readers at the head of the queue. This might take a while if there are many readers,