Re: [PATCH] i386 rw semaphore + use for mmap_sem

Benjamin C.R. LaHaise (blah@kvack.org)
Mon, 22 Nov 1999 13:07:11 -0500 (EST)


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/