Re: [B.A.T.M.A.N.] [PATCH] batman-adv: postpone sysfs removal when unregistering

2013-01-10 Thread Simon Wunderlich
Hey Antonio, On Thu, Jan 10, 2013 at 04:34:47AM +0200, Antonio Quartulli wrote: Hello Simon, thanks a lot for taking care of this and sorry for my very late reply.. no problem, thanks for your review! Il 31.12.2012 01:40 Simon Wunderlich ha scritto: diff --git a/hard-interface.c

[B.A.T.M.A.N.] [PATCHv2] batman-adv: postpone sysfs removal when unregistering

2013-01-10 Thread Simon Wunderlich
When processing the unregister notify for a hard interface, removing the sysfs files may lead to a circular deadlock (rtnl mutex - s_active). To overcome this problem, postpone the sysfs removal in a worker. Reported-by: Sasha Levin sasha.le...@oracle.com Reported-by: Sven Eckelmann

Re: [B.A.T.M.A.N.] [PATCHv2] batman-adv: postpone sysfs removal when unregistering

2013-01-10 Thread Marek Lindner
On Friday, January 11, 2013 01:09:21 Simon Wunderlich wrote: +static void batadv_hardif_remove_interface_finish(struct work_struct *work) +{ + struct batadv_hard_iface *hard_iface; + + hard_iface = container_of(work, struct batadv_hard_iface, +