Paul E. McKenney wrote:
> > I have similar concerns with your other RCU read-side
> > sections.
> Looks to me like a valid point. I have to think a little bit how to solve
> it correctly. Feel free to add more comments about other rcu cruelties
> in it.
One approach would be to extend the RCU read-side critical section to
cover all uses of the RCU-protected pointer. Another approach would be
to take a reference count (or something similar) before the pointer
leaves the RCU read-side critical section.
I am not the author of the rcu related functionality (it was one of the actual
maintainers: Simon Wunderlich), but would guess that the rcu protected
"critical section" will be extended.
Could you please take a look at Documentation/RCU/checklist.txt?
Because I am not familiar with the BATMAN device, it is all too easy
for me to miss subtleties in the code.
Yes, will be done (will probably end in reading all the rcu documentation).
But it is really nice that you checked the code for your area of interest.