Re: [PATCH 04/04] NFS/RDMA client stall patches

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This trivial patch prevents the client from waiting
for 5 seconds on xprt reconnect if the xprt was
disconnected by the client with out being in an error
state.

Signed-off-by: Peter Leckie <pleckie@xxxxxxxxxxxxxxxxx>
Reviewed-by: Greg Banks <gnb@xxxxxxxxxxxxxxxxx>
---

Index: linux-2.6.25.3/net/sunrpc/xprtrdma/verbs.c
===================================================================
--- linux-2.6.25.3.orig/net/sunrpc/xprtrdma/verbs.c
+++ linux-2.6.25.3/net/sunrpc/xprtrdma/verbs.c
@@ -848,8 +848,8 @@ rpcrdma_ep_disconnect(struct rpcrdma_ep
                       (ep->rep_connected == 1) ? "still " : "dis");
       } else {
               dprintk("RPC:       %s: rdma_disconnect %i\n", __func__, rc);
-               ep->rep_connected = rc;
       }
+       ep->rep_connected = rc;
       return rc;
}

--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux