From: Jeff Layton Date: Sat, 4 Jan 2014 12:18:05 +0000 (-0500) Subject: sunrpc: get rid of use_gssp_lock X-Git-Tag: v3.14-rc1~44^2~14 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0fdc26785d0a5bb33d9adb572307fd2d7a406734;p=pandora-kernel.git sunrpc: get rid of use_gssp_lock We can achieve the same result with a cmpxchg(). This also fixes a potential race in use_gss_proxy(). The value of sn->use_gss_proxy could go from -1 to 1 just after we check it in use_gss_proxy() but before we acquire the spinlock. The procfile write would end up returning success but the value would flip to 0 soon afterward. With this method we not only avoid locking but the first "setter" always wins. Signed-off-by: Jeff Layton Signed-off-by: J. Bruce Fields --- Reading git-diff-tree failed