]> git.baikalelectronics.ru Git - kernel.git/commit
SUNRPC: Fix a regression when reconnecting
authorTrond Myklebust <trond.myklebust@primarydata.com>
Mon, 23 Mar 2015 20:10:00 +0000 (16:10 -0400)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Fri, 27 Mar 2015 16:24:36 +0000 (12:24 -0400)
commit4404b40a2c00534c7ea78d6e106803840cce1d93
tree5a226e4308ff50a130f16c3365ba5e06d7ce6b5b
parentf2914f58b37607e290f9bccf8546861743f971ed
SUNRPC: Fix a regression when reconnecting

If the task needs to give up the socket lock in order to allow a
reconnect to occur, then it must also clear the 'rq_bytes_sent' field
so that when it retransmits, it knows to start from the beginning.

Fixes: 8350770af2e9 ("SUNRPC: Add helpers to prevent socket create from racing")
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
net/sunrpc/xprt.c