Sleepable RCU
Sleepable RCU
Posted Oct 17, 2014 5:30 UTC (Fri) by juihaochiang (guest, #84945)Parent article: Sleepable RCU
I am pretty new to RCU and have question about synchronize_srcu implementation.
In line 11, the description says "line 11 guarantees that any other CPU that sees the incremented value of the grace period counter in srcu_read_lock() also sees any changes made by this CPU prior to entering synchronize_srcu(). This guarantee is required to make sure that any SRCU read-side critical sections not blocking the next grace period have seen any prior changes."
[question] Assume the grace-period (gp) increments from 0 -> 1, if the reader can see the incremented counter (gp = 1), it should already see any change prior to synchronize_srcu, e.g., item removed from list, then why do we need to call synchronize_sched to make sure about it? could you give an counter-example?
Thanks,
Jui-Hao
The LWN site is currently under high scraper load, so comment display has been suppressed for anonymous users. If you are a human, you may read the comments by clicking the button below:
Note: you can avoid this step in the future by logging into your LWN account.
