From: Eric Dumazet Date: Thu, 7 Oct 2010 10:44:07 +0000 (+0000) Subject: neigh: Protect neigh->ha[] with a seqlock X-Git-Tag: v2.6.37-rc1~147^2~166 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0ed8ddf4045fcfcac36bad753dc4046118c603ec;p=pandora-kernel.git neigh: Protect neigh->ha[] with a seqlock Add a seqlock in struct neighbour to protect neigh->ha[], and avoid dirtying neighbour in stress situation (many different flows / dsts) Dirtying takes place because of read_lock(&n->lock) and n->used writes. Switching to a seqlock, and writing n->used only on jiffies changes permits less dirtying. Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller --- Reading git-diff-tree failed