lkml.org 
[lkml]   [2008]   [Aug]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
DateThu, 21 Aug 2008 08:06:50 -0700
From"Jared Hulbert" <>
SubjectRe: [PATCH 04/10] AXFS: axfs_inode.c
> Have you seen any benefit of the rwsem over a simple mutex? I would guess
> that you can never even get into the situation where you get concurrent
> readers since I haven't found a single down_read() in your code, only
> downgrade_write()

We implemented a rwsem here because you can get concurrent readers.
My understanding is that downgrade_write() puts the rewem into the
same state as down_read(). Am I mistaken?


\
 
 \ /
  Last update: 2008-08-21 17:09    [from the cache]
©2003-2010