> 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/