lkml.org 
[lkml]   [1999]   [Nov]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] i386 rw semaphore + use for mmap_sem
On Mon, 22 Nov 1999, Marcelo Tosatti wrote:

> Your code wakes up all writers (if there are any) in read_up.
> Since just one writer will get the lock, i think its more interesting to
> wake one process.

Look closer -- writers add themselves with the EXCLUSIVE flag. There's a
race in the down_write_failed case that I've fixed (the writer owning the
bias must add itself to the head of the wait queue) and will be posting an
updated patch for soon.

-ben


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:55    [W:1.502 / U:0.764 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site