commit | d6e971d8ecafee18ff9cc1ac646eb0817ab8b143 | [log] [tgz] |
---|---|---|
author | Jeff Layton <jlayton@poochiereds.net> | Wed Jun 03 16:14:28 2015 -0400 |
committer | Trond Myklebust <trond.myklebust@primarydata.com> | Wed Jun 10 18:26:24 2015 -0400 |
tree | d1a2a975cee7cbe10258081e2a2a781a95d15a8f | |
parent | 264d1df3b34804a7d440d77771020f616a573528 [diff] |
sunrpc: lock xprt before trying to set memalloc on the sockets It's possible that we could race with a call to xs_reset_transport, in which case the xprt->inet pointer could be zeroed out while we're accessing it. Lock the xprt before we try to set memalloc on it. Cc: Mel Gorman <mgorman@suse.de> Signed-off-by: Jeff Layton <jeff.layton@primarydata.com> Reviewed-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>