Linus Torvalds writes: (Summary) You're using a pointer where the lifetime has
nothing to do with RCU any more.
nothing to do with RCU any more.
Can it be done? But you need *other* locking for it (that you haven't explained), and it's fragile as hell.
explained), and it's fragile as hell.
It's probably best to not use RCU for it at all, but depend on that "other locking" that you have to have anyway, to keep the pointer valid over the non-RCU region.
non-RCU region.
Linus
Linus
Linus
nothing to do with RCU any more.
Can it be done? But you need *other* locking for it (that you haven't explained), and it's fragile as hell.
explained), and it's fragile as hell.
It's probably best to not use RCU for it at all, but depend on that "other locking" that you have to have anyway, to keep the pointer valid over the non-RCU region.
non-RCU region.
Linus
Linus
Linus