From: Herbert Xu Date: Thu, 10 Jun 2010 16:12:44 +0000 (+0000) Subject: netpoll: Fix RCU usage X-Git-Tag: v2.6.36-rc1~571^2~587 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de85d99eb7b595f6751550184b94c1e2f74a828b;p=pandora-kernel.git netpoll: Fix RCU usage The use of RCU in netpoll is incorrect in a number of places: 1) The initial setting is lacking a write barrier. 2) The synchronize_rcu is in the wrong place. 3) Read barriers are missing. 4) Some places are even missing rcu_read_lock. 5) npinfo is zeroed after freeing. This patch fixes those issues. As most users are in BH context, this also converts the RCU usage to the BH variant. Signed-off-by: Herbert Xu Acked-by: Paul E. McKenney Signed-off-by: David S. Miller --- Reading git-diff-tree failed