Trond Myklebust wrote: > From: Trond Myklebust > > Move the calls to xprt_disconnect() over to xprt_force_disconnect() in > order to enable the transport layer to manage the state of the > XPRT_CONNECTED flag. Should xs_tcp_read_fraghdr() also use the new force disconnect? > Signed-off-by: Trond Myklebust > --- > > net/sunrpc/clnt.c | 4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c > index 76be83e..046d8f6 100644 > --- a/net/sunrpc/clnt.c > +++ b/net/sunrpc/clnt.c > @@ -1137,7 +1137,7 @@ call_status(struct rpc_task *task) > case -ETIMEDOUT: > task->tk_action = call_timeout; > if (task->tk_client->cl_discrtry) > - xprt_disconnect(task->tk_xprt); > + xprt_force_disconnect(task->tk_xprt); > break; > case -ECONNREFUSED: > case -ENOTCONN: > @@ -1260,7 +1260,7 @@ out_retry: > req->rq_received = req->rq_private_buf.len = 0; > task->tk_status = 0; > if (task->tk_client->cl_discrtry) > - xprt_disconnect(task->tk_xprt); > + xprt_force_disconnect(task->tk_xprt); > } > > /*