Whamcloud - gitweb
LU-447 lnet: add lctl --net XXX push
authorJames Simmons <uja.ornl@gmail.com>
Fri, 30 Mar 2012 12:50:09 +0000 (08:50 -0400)
committerOleg Drokin <green@whamcloud.com>
Mon, 7 May 2012 15:34:41 +0000 (11:34 -0400)
Lctl --net XXX push is used to clear out purgatory conns arbitrarily.
We use this with lctl --net XXX disconnect for regression testing.
This does not nuke the peer, so it shouldn't yield lnd_query failures
like del_peer does.

Signed-off-by: James Simmons <uja.ornl@gmail.com>
Signed-off-by: Bob Glossman <bogl@whamcloud.com>
Change-Id: Ia7b033750134020022df676f451d91b20e4f5db4
Reviewed-on: http://review.whamcloud.com/2645
Reviewed-by: Lai Siyao <laisiyao@whamcloud.com>
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/utils/lctl.c

index 8e08071..42b64b0 100644 (file)
@@ -272,6 +272,8 @@ command_t cmdlist[] = {
          "usage: del_conn <conn_uuid> \n"},
         {"disconnect", jt_ptl_disconnect, 0, "disconnect from a remote nid\n"
          "usage: disconnect [<nid>]"},
+        {"push", jt_ptl_push_connection, 0, "flush connection to a remote nid\n"
+         "usage: push [<nid>]"},
         {"mynid", jt_ptl_mynid, 0, "inform the socknal of the local nid. "
          "The nid defaults to hostname for tcp networks and is automatically "
          "setup for elan/myrinet networks.\n"