Re: [B.A.T.M.A.N.] [PATCH v2 04/30] batman-adv: Drop immediate orig_node free function

Linus Lüssing
2016-01-04T16:32:15Z

On Sun, Dec 20, 2015 at 02:17:44PM +0100, Sven Eckelmann wrote:
> But the _now functions ignore this completely. They free the object
> directly even when a different context still tries to access it. This has
> to be avoided and thus these functions must be removed and all functions
> have to use batadv_orig_node_free_ref.

Hrmpf, right, the rcu callback scheduler does not ensure that
everything else is outside of an rcu-read-critical section... My
bad. Your solution looks better :).