From: Jeff Layton Date: Wed, 16 Jul 2014 10:52:19 +0000 (-0400) Subject: sunrpc: fix RCU handling of gc_ctx field X-Git-Tag: omap-for-v3.17/fixes-against-rc2~82^2~20 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c5e6aecd034e70e73af4d7a2b8a115239e3568b5;p=pandora-kernel.git sunrpc: fix RCU handling of gc_ctx field The handling of the gc_ctx pointer only seems to be partially RCU-safe. The assignment and freeing are done using RCU, but many places in the code seem to dereference that pointer without proper RCU safeguards. Fix them to use rcu_dereference and to rcu_read_lock/unlock, and to properly handle the case where the pointer is NULL. Cc: Arnd Bergmann Cc: Paul McKenney Signed-off-by: Jeff Layton Signed-off-by: Trond Myklebust --- Reading git-diff-tree failed