Re: rwlocks, correctness over speed.



* Max Laier <max@xxxxxxxxxxxxxx> [071122 07:46] wrote:
On Wednesday 21 November 2007, Alfred Perlstein wrote:
In summary, I am proposing (temporarily) making read-recursion
on rwlocks not supported in order to avoid livelock due to writer
starvation.


rwlocks are already used in places that do recursive reads. The one place


Max, I think what will happen is that we will mark further uses
or read locks as recursive as "not supported", perhaps witness
can temporarily grow a flag to ignore recursive read ops until
the existing infrastructure is fixed.

I will not get into alternatives for pfil, as it seems you've mostly
worked it out.

-Alfred
_______________________________________________
freebsd-arch@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-arch
To unsubscribe, send any mail to "freebsd-arch-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: rwlocks, correctness over speed.
    ... It's not the matter of recursion, ... locks once a writer has blocked on the lock. ... We currently have a problem with our implementation of rwlocks. ... We do not support writer priority or "fair share" usage of rwlocks ...
    (freebsd-arch)
  • Re: rwlocks, correctness over speed.
    ... It's not the matter of recursion, ... locks once a writer has blocked on the lock. ... We currently have a problem with our implementation of rwlocks. ... We do not support writer priority or "fair share" usage of rwlocks ...
    (freebsd-arch)
  • Re[2]: rwlocks, correctness over speed.
    ... It's not the matter of recursion, ... locks once a writer has blocked on the lock. ... we were to block readers once a writer blocked and a reader ... We currently have a problem with our implementation of rwlocks. ...
    (freebsd-arch)
  • Re: rwlocks, correctness over speed.
    ... We currently have a problem with our implementation of rwlocks. ... We do not support writer priority or "fair share" usage of rwlocks ... Disallow recursion on rwlocks, ...
    (freebsd-arch)
  • Re: rwlocks, correctness over speed.
    ... We currently have a problem with our implementation of rwlocks. ... We do not support writer priority or "fair share" usage of rwlocks ... Disallow recursion on rwlocks, ...
    (freebsd-arch)