]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5f8040f83caebad208fe5a6ae96ee8c645667550
treeab0b360d7cdea38af56ca8e2e029c1e892b29e7f
parentf645432a006febdbd0af272d890585f7d0cc4de4
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