[PATCH 4/3] rcu: documents rculist_nulls
From: Eric Dumazet <hidden>
Date: 2008-11-13 16:04:07
Attachments
- rculist_nulls_doc.patch [text/plain] 5489 bytes · preview
From: Eric Dumazet <hidden>
Date: 2008-11-13 16:04:07
Eric Dumazet a écrit :
Peter Zijlstra a écrit :quoted
So by not using some memory barriers (would be nice to have it illustrated which ones), we can race and end up on the wrong chain, in case that happens we detect this by using this per-chain terminator and try again. It would be really good to have it explained in the rculist_nulls.h comments what memory barriers are missing, what races they open, and how the this special terminator trick closes that race.OK, maybe I should add a Documentation/RCU/rculist_nulls.txt file with appropriate examples and documentation. (Say the lookup/insert algorithms, with standard hlist and memory barriers, and with hlist_nulls without those two memory barriers.
[PATCH 4/3] rcu: documents rculist_nulls Adds Documentation/RCU/rculist_nulls.txt file to describe how 'nulls' end-of-list can help in some RCU algos. Signed-off-by: Eric Dumazet <redacted> --- Documentation/RCU/rculist_nulls.txt | 167 ++++++++++++++++++++++++++ 1 files changed, 167 insertions(+)