Re: [PATCH 3/4] rwsem: implement write lock stealing

2013-02-09 Thread Hillf Danton
On Sat, Feb 9, 2013 at 3:42 PM, Michel Lespinasse wrote: > On Fri, Feb 8, 2013 at 11:30 PM, Hillf Danton wrote: >> On Sat, Feb 9, 2013 at 10:45 AM, Michel Lespinasse wrote: >>> + if (waiter->type != RWSEM_WAITING_FOR_WRITE) { >>> + list_del(&waiter->list); >>>

Re: [PATCH 3/4] rwsem: implement write lock stealing

2013-02-08 Thread Michel Lespinasse
On Fri, Feb 8, 2013 at 11:30 PM, Hillf Danton wrote: > On Sat, Feb 9, 2013 at 10:45 AM, Michel Lespinasse wrote: >> + if (waiter->type != RWSEM_WAITING_FOR_WRITE) { >> + list_del(&waiter->list); >> + >> + /* Set RWSEM_WAITING_BIAS before w

Re: [PATCH 3/4] rwsem: implement write lock stealing

2013-02-08 Thread Hillf Danton
On Sat, Feb 9, 2013 at 10:45 AM, Michel Lespinasse wrote: > + if (waiter->type != RWSEM_WAITING_FOR_WRITE) { > + list_del(&waiter->list); > + > + /* Set RWSEM_WAITING_BIAS before waking the last > reader > +* so we