]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] SUNRPC: fix race in in-kernel RPC portmapper client
authorChuck Lever <chuck.lever@oracle.com>
Fri, 20 Oct 2006 06:28:43 +0000 (23:28 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 20 Oct 2006 17:26:39 +0000 (10:26 -0700)
commit71bdcf8056f910dc57ea3d0def80a9329e7dc52d
tree293bf48584d44b5e27cb5050d4e4ccb5254388a2
parentb87c0adfeaaf8d8310c4f790d76072a5961b3518
[PATCH] SUNRPC: fix race in in-kernel RPC portmapper client

When submitting a request to a fast portmapper (such as the local rpcbind
daemon), the request can complete before the parent task is even queued up on
xprt->binding.  Fix this by queuing before submitting the rpcbind request.

Test plan:
Connectathon locking test with UDP.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
net/sunrpc/pmap_clnt.c