Quantcast
Viewing all articles
Browse latest Browse all 1267

Re: [PATCH v2 01/26] rculist: introduce list_next_or_null_rr_rcu()

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

Viewing all articles
Browse latest Browse all 1267

Trending Articles