diff options
author | Tim Chen <[email protected]> | 2014-05-02 12:53:57 -0700 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2014-05-04 20:34:26 +0200 |
commit | 3cf2f34e1a3d4d5ff209d087925cf950e52f4805 (patch) | |
tree | 8e3814671a22470fc5156527f23877619f468594 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace | |
parent | 1413c03893332366e5b4d1e26f942ada25f3e82a (diff) |
rwsem: Add comments to explain the meaning of the rwsem's count field
It took me quite a while to understand how rwsem's count field
mainifested itself in different scenarios.
Add comments to provide a quick reference to the the rwsem's count
field for each scenario where readers and writers are contending
for 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.
Signed-off-by: Tim Chen <[email protected]>
Cc: Davidlohr Bueso <[email protected]>
Cc: Alex Shi <[email protected]>
Cc: Michel Lespinasse <[email protected]>
Cc: Rik van Riel <[email protected]>
Cc: Peter Hurley <[email protected]>
Cc: Paul E.McKenney <[email protected]>
Cc: Jason Low <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Andrew Morton <[email protected]>
Cc: Paul E. McKenney <[email protected]>
Link: http://lkml.kernel.org/r/1399060437.2970.146.camel@schen9-DESK
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace')
0 files changed, 0 insertions, 0 deletions