diff options
author | Jeff Layton | 2015-06-03 16:14:28 -0400 |
---|---|---|
committer | Trond Myklebust | 2015-06-10 18:26:24 -0400 |
commit | d6e971d8ecafee18ff9cc1ac646eb0817ab8b143 (patch) | |
tree | d1a2a975cee7cbe10258081e2a2a781a95d15a8f /net/sunrpc/xprtrdma/transport.c | |
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>
Diffstat (limited to 'net/sunrpc/xprtrdma/transport.c')
0 files changed, 0 insertions, 0 deletions