lkml.org 
[lkml]   [2012]   [Nov]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH RESEND v2 1/1] percpu_rw_semaphore: reimplement to not block the readers unnecessarily
On 11/09, Oleg Nesterov wrote:
>
> static bool xxx(brw)
> {
> down_write(&brw->rw_sem);
> if (!atomic_read(&brw->slow_read_ctr))
> return true;

I meant, try_to_down_write(). Otherwise this can obviously deadlock.

Oleg.



\
 
 \ /
  Last update: 2012-11-09 19:41    [W:0.125 / U:0.100 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site