LWN.net Logo

Fast reader/writer locks

Fast reader/writer locks

Posted Feb 6, 2003 4:37 UTC (Thu) by dneto (guest, #4954)
In reply to: Fast reader/writer locks by acristianb
Parent article: Fast reader/writer locks

You've got the reader's seq ordering backward.
The writer updates seq pre, then seq post.
The reader checks seq post, then seq pre.
I think that avoids the problem you mention.


(Log in to post comments)

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds