SUNRPC: Don't set the request connect_cookie until a successful transmit
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 25 Sep 2013 15:31:54 +0000 (11:31 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 1 Oct 2013 22:22:10 +0000 (18:22 -0400)
commit0a6605213040dd2fb479f0d1a9a87a1d7fa70904
tree9789e9f922284855e1254f21fb84b6d1f8e95b09
parent8b71798c0d389d4cadc884fc7d68c61ee8cd4f45
SUNRPC: Don't set the request connect_cookie until a successful transmit

We're using the request connect_cookie to track whether or not a
request was successfully transmitted on the current transport
connection or not. For that reason we should ensure that it is
only set after we've successfully transmitted the request.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
net/sunrpc/xprt.c