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

2012-12-13 Thread Antonio Quartulli
On Wed, Dec 12, 2012 at 11:41:59AM +0100, Simon Wunderlich wrote: This patch needs rework for two reasons: * we still need to defer the softif as well, otherwise we keep the deadlock for the softif * work struct and delayed_work are mixed up here if you think to the fact that you are

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

2012-12-12 Thread Simon Wunderlich
This patch needs rework for two reasons: * we still need to defer the softif as well, otherwise we keep the deadlock for the softif * work struct and delayed_work are mixed up here I'll post a revised version soon. Cheers, Simon On Wed, Dec 12, 2012 at 12:05:05AM +0100, Simon

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

2012-12-11 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