LWN.net Logo

Big reader locks

Big reader locks

Posted Mar 23, 2010 18:47 UTC (Tue) by jzbiciak (✭ supporter ✭, #5246)
In reply to: Big reader locks by dvhart
Parent article: Big reader locks

I guess the major difference is that this one disallows any concurrency between readers and writers. In RCU, my understanding is that readers always get a "consistent" structure for as long as they need. A writer can start preparing a new copy while readers are still active.

In this, it sounds like a writer must wait until all readers are truly finished. When mounting/unmounting, that sounds like a useful, stronger semantic.

Or am I missing something?


(Log in to post comments)

Big reader locks

Posted Mar 25, 2010 15:36 UTC (Thu) by dvhart (guest, #19636) [Link]

Good point, I think you nailed it.

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