From: Ying Xue Date: Mon, 21 Apr 2014 02:55:47 +0000 (+0800) Subject: tipc: use RCU to protect media_ptr pointer X-Git-Tag: omap-for-v3.16/fixes-against-rc1~36^2~348^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2231c5af451e4b7ae3cc56eaa4653af6ede51109;p=pandora-kernel.git tipc: use RCU to protect media_ptr pointer Now the media_ptr pointer is protected with tipc_net_lock write lock on write side; tipc_net_lock read lock is used to read side. As the part of effort of eliminating tipc_net_lock, we decide to adjust the locking policy of media_ptr pointer protection: on write side, RTNL lock is use while on read side RCU read lock is applied. Signed-off-by: Ying Xue Reviewed-by: Jon Maloy Reviewed-by: Erik Hugne Tested-by: Erik Hugne Signed-off-by: David S. Miller --- Reading git-diff-tree failed