From: Jarek Poplawski Date: Tue, 20 Jan 2009 22:08:23 +0000 (-0800) Subject: pkt_sched: cls_u32: Fix locking in u32_change() X-Git-Tag: v2.6.27.13~37 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c20cba0d08f3c6c10e0181077cca7f1833ffdb6b;p=pandora-kernel.git pkt_sched: cls_u32: Fix locking in u32_change() [ Upstream commit: 6f57321422e0d359e83c978c2b03db77b967b7d5 ] New nodes are inserted in u32_change() under rtnl_lock() with wmb(), so without tcf_tree_lock() like in other classifiers (e.g. cls_fw). This isn't enough without rmb() on the read side, but on the other hand adding such barriers doesn't give any savings, so the lock is added instead. Reported-by: m0sia Signed-off-by: Jarek Poplawski Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed