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)
committerBen Hutchings <ben@decadent.org.uk>
Sun, 14 Dec 2014 16:23:58 +0000 (16:23 +0000)
commit680572752413acdc3e277c01f7d9c48c36ee1c54
tree0caca50cbbb9607dbfc0d0eefb5a86a2a606dc74
parent5fb2a40b3a04205b97de7e9017be84d3b6d7b7ed
SUNRPC: Fix locking around callback channel reply receive

commit 093a1468b6edb0e568be7311b8d2228d205702db upstream.

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>
Reviewed-by: Jeff Layton <jlayton@primarydata.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
[bwh: Backported to 3.2: adjust context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
net/sunrpc/svcsock.c