Hi Paul, This is the continuation of changes to snippets in the "count" chapter. To help your review of the changes regarding READ_ONCE()/WRITE_ONCE(), I split the patches to the ones just applying the scheme and the ones modifying READ_ONCE()/WRITE_ONCE(). Note on patch #3: It fixes the segfault observed in count_tstat. However, I'm not sure if you want to take it or not. The fail can be thought of as a Quick Quiz within the Answer to the Quick Quiz. So keeping it as is would also be reasonable. Thanks, Akira -- Akira Yokosawa (5): count: Employ new scheme for snippet of count_end and count_tstat count: Fix uses of READ/WRITE_ONCE()s in count_end and count_tstat count: Tweak counttorture.h to avoid segfault count: Employ new scheme for snippet of count_lim count: Fix uses of READ/WRITE_ONCE() in count_lim CodeSamples/count/count_end.c | 53 ++--- CodeSamples/count/count_lim.c | 147 +++++++------ CodeSamples/count/count_tstat.c | 27 +-- CodeSamples/count/counttorture.h | 21 +- count/count.tex | 437 +++++++++++++-------------------------- 5 files changed, 287 insertions(+), 398 deletions(-) -- 2.7.4