Messages in this thread | | | Subject | Re: [PATCH] rwsem: Comments to explain the meaning of the rwsem's count field | From | Davidlohr Bueso <> | Date | Thu, 01 May 2014 11:38:52 -0700 |
| |
On Thu, 2014-05-01 at 10:50 -0700, Tim Chen wrote: > It takes me a while to understand how rwsem's count field mainifest > itself in different scenarios. I'm adding comments to provide a quick > reference on the the rwsem's count field for each scenario where readers > and writers are contending/holding the lock. Hopefully it will be useful > for future maintenance of the code and for people to get up to speed on > how the logic in the code works.
Agreed, this is nice to have. I'm planning on sending a minor set of patches for rwsem once the optistic spinning stuff is taken. To simplify things, I can take this in the series and resend along with the others.
Thanks, Davidlohr
| |