From: Jeff Layton Date: Wed, 3 Jun 2015 20:14:26 +0000 (-0400) Subject: sunrpc: make xprt->swapper an atomic_t X-Git-Tag: omap-for-v4.3/legacy-v2-signed~68^2~44 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8e2281330f9930bccf77cf04027ec60b6cc0fb34;p=pandora-kernel.git sunrpc: make xprt->swapper an atomic_t Split xs_swapper into enable/disable functions and eliminate the "enable" flag. Currently, it's racy if you have multiple swapon/swapoff operations running in parallel over the same xprt. Also fix it so that we only set it to a memalloc socket on a 0->1 transition and only clear it on a 1->0 transition. Cc: Mel Gorman Signed-off-by: Jeff Layton Reviewed-by: Chuck Lever Signed-off-by: Trond Myklebust --- Reading git-diff-tree failed