public inbox for b.a.t.m.a.n@lists.open-mesh.org
 help / color / mirror / Atom feed
* [B.A.T.M.A.N.] Various fixes and clean-ups
@ 2011-03-13 19:52 Linus Lüssing
  2011-03-13 19:52 ` [B.A.T.M.A.N.] [PATCH 1/5] batman-adv: Move bonding / iface alternating router search to own functions Linus Lüssing
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Linus Lüssing @ 2011-03-13 19:52 UTC (permalink / raw)
  To: b.a.t.m.a.n

Hi everyone,

For one thing, I've changed the orig_node->router dereference as discussed on IRC,
now using an extra getter method for that to reduce the lines of code for
rcu-dereferencing, rcu-locking and refcounting for the router pointer
and to make it easier to keep track of the right refcounting (Patch 4/5). Note,
that the previous version was pretty simple, by just using rcu_dereference() everywhere.
However, this current version is a little more invasive, so would be great if
someone could double check that I didn't introduce any new mem-leaks or
null-pointer-dereferences due to wrong refcounting. It already took me quite
some time to find and squash two bugs I had introduced with this, so
there might be even more in there. I double checked it myself and
also tested it in a 4 node chain toplogy vm setup, though.

For Patch 5/5, I've removed the "TQ value" from the patch subject. For the TQ
window locking is definitely needed, whether tq_avg needs locking as well still
needs to be checked. If so, that could be done with a separate patch though.

Patches 1,2,3 are just some smaller changes. Let me know what you think about them.

Cheers, Linus

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-03-14 22:48 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-13 19:52 [B.A.T.M.A.N.] Various fixes and clean-ups Linus Lüssing
2011-03-13 19:52 ` [B.A.T.M.A.N.] [PATCH 1/5] batman-adv: Move bonding / iface alternating router search to own functions Linus Lüssing
2011-03-13 19:52 ` [B.A.T.M.A.N.] [PATCH 2/5] batman-adv: Make gateway_get_selected type safe Linus Lüssing
2011-03-13 19:52 ` [B.A.T.M.A.N.] [PATCH 3/5] batman-adv: Simplify gw_check_election(), use gw_get_selected() Linus Lüssing
2011-03-13 19:52 ` [B.A.T.M.A.N.] [PATCH 4/5] batman-adv: Make orig_node->router an rcu protected pointer Linus Lüssing
2011-03-13 19:52 ` [B.A.T.M.A.N.] [PATCH 5/5] batman-adv: Protect global TQ window with a spinlock Linus Lüssing
2011-03-14 22:48 ` [B.A.T.M.A.N.] Various fixes and clean-ups Marek Lindner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox