[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20090831150453.3437a65c@nehalam>
Date: Mon, 31 Aug 2009 15:04:53 -0700
From: Stephen Hemminger <shemminger@...tta.com>
To: Eric Dumazet <eric.dumazet@...il.com>
Cc: netdev@...r.kernel.org
Subject: neighbour table RCU
Looking at the neighbour table, it should be possible to get
rid of the two reader/writer locks. The hash table lock is pretty
amenable to RCU, but the dynamic resizing makes it non-trivial.
Thinking of using a combination of RCU and sequence counts so that the
reader would just rescan if resize was in progress.
The reader/writer lock on the neighbour entry is more of a problem.
Probably would be simpler/faster to change it into a spinlock and
be done with it.
The reader/writer lock is also used for the proxy list hash table,
but that can just be a simple spinlock.
--
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists