On 05/01/16 19:06, Sven Eckelmann wrote:
> +void batadv_hardif_release(struct batadv_hard_iface *hard_iface)
>  {
> -     struct batadv_hard_iface *hard_iface;
> -
> -     hard_iface = container_of(rcu, struct batadv_hard_iface, rcu);
>       dev_put(hard_iface->net_dev);

Sven,

what is wrong in releasing the releasing the reference to net_dev inside
the RCU callback (except for introducing some delay) ?

Cheers,


-- 
Antonio Quartulli

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to