[B.A.T.M.A.N.] [PATCH] Updating orig_str for debug

2009-12-03 Thread Linus Lüssing
In commit 1488 the orig_str has been removed from purge_orig_neighbours(). Apparently, this breaks compilation when enabling debug-flags, as bat_dbg() is expecting this variable as a parameter. Actually, this variable has never been initialised also before commit 1488 (which was probably the

Re: [B.A.T.M.A.N.] [PATCH] Removing the big batman lock

2009-12-03 Thread Linus Lüssing
Hi Simon, I just gave your patch a try on my laptop and could successfully, reproduceably crash my kernel in the following way: Setting up wifi to ad-hoc mode and connecting it to other batman-wifi-nodes, insmodding batman-adv on my laptop and adding this wifi interface to batman - kernel hangs

Re: [B.A.T.M.A.N.] [PATCH] Updating orig_str for debug

2009-12-03 Thread Gus Wirth
On 12/02/2009 04:24 PM, Linus Lüssing wrote: In commit 1488 the orig_str has been removed from purge_orig_neighbours(). Apparently, this breaks compilation when enabling debug-flags, as bat_dbg() is expecting this variable as a parameter. Actually, this variable has never been initialised also

Re: [B.A.T.M.A.N.] [PATCH] Updating orig_str for debug

2009-12-03 Thread Marek Lindner
On Thursday 03 December 2009 08:24:07 Linus Lüssing wrote: In commit 1488 the orig_str has been removed from purge_orig_neighbours(). Apparently, this breaks compilation when enabling debug-flags, as bat_dbg() is expecting this variable as a parameter. Actually, this variable has never been

Re: [B.A.T.M.A.N.] [PATCH] Updating orig_str for debug

2009-12-03 Thread Marek Lindner
Hi Gus, Shouldn't the addr_to_string(orig_str, orig_node-orig); be moved out side the loop to near the top of the function? There is only one originator node and there is no reason to iterate over it. One time should suffice. you are probably right but I know that Andrew has a patch in his

Re: [B.A.T.M.A.N.] batman-adv compile fails with DEBUG on

2009-12-03 Thread Marek Lindner
On Thursday 03 December 2009 01:31:23 Gus Wirth wrote: When trying to compile batman-adv revision 1489 checked out from Subversion I get a failure if I activate debugging by editing the appropriate line in Makefile.kbuild. The error is: Should be fixed in revision 1490 (thanks to Linus).

Re: [B.A.T.M.A.N.] batman-adv compile fails with DEBUG on

2009-12-03 Thread Marek Lindner
On Thursday 03 December 2009 11:12:27 Gus Wirth wrote: Should be fixed in revision 1490 (thanks to Linus). Thanks. But should I use Trac to report bugs or just post to this list? I think both is fine. The trac is better suited for attaching things and as a reminder for outstanding bugs. It

Re: [B.A.T.M.A.N.] [PATCH] Updating orig_str for debug

2009-12-03 Thread Andrew Lunn
you are probably right but I know that Andrew has a patch in his pipeline which will remove these addr_to_string() calls entirely (printk can handle mac addresses for us). Until then we can live with this workaround. :) I've been holding off on this patch because of Simon's big lock removal

Re: [B.A.T.M.A.N.] [PATCH] Removing the big batman lock

2009-12-03 Thread Andrew Lunn
On Thu, Dec 03, 2009 at 02:31:22AM +0100, Linus L??ssing wrote: Hi Simon, I just gave your patch a try on my laptop and could successfully, reproduceably crash my kernel in the following way: This looks like a deadlock. Simon: Did you try lockdep on this new code?

Re: [B.A.T.M.A.N.] [PATCHv2] [batman-adv] Removing the big batman lock

2009-12-03 Thread Andrew Lunn
It seems to deadlock according to https://lists.open-mesh.net/pipermail/b.a.t.m.a.n/2009-December/001938.html Patch was modified by Sven Eckelmann sven.eckelm...@gmx.de to apply cleanly against r1490. Is this just modification so that it cleanly applies? Or does it also fix the deadlock?

Re: [B.A.T.M.A.N.] [PATCHv2] [batman-adv] Removing the big batman lock

2009-12-03 Thread Sven Eckelmann
Andrew Lunn wrote: It seems to deadlock according to https://lists.open-mesh.net/pipermail/b.a.t.m.a.n/2009-December/001938.ht ml Patch was modified by Sven Eckelmann sven.eckelm...@gmx.de to apply cleanly against r1490. Is this just modification so that it cleanly applies? Or