SUNRPC: Fix locking around callback channel reply receive
authorTrond Myklebust <trond.myklebust@primarydata.com>
Wed, 12 Nov 2014 23:04:04 +0000 (18:04 -0500)
committerJ. Bruce Fields <bfields@redhat.com>
Wed, 19 Nov 2014 17:03:20 +0000 (12:03 -0500)
commit093a1468b6edb0e568be7311b8d2228d205702db
treeab0b360d7cdea38af56ca8e2e029c1e892b29e7f
parent6d0ba0432a5e10bc714ba9c5adc460e726e5fbb4
SUNRPC: Fix locking around callback channel reply receive

Both xprt_lookup_rqst() and xprt_complete_rqst() require that you
take the transport lock in order to avoid races with xprt_transmit().

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Cc: stable@vger.kernel.org
Reviewed-by: Jeff Layton <jlayton@primarydata.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
net/sunrpc/svcsock.c