staging: lustre: lnet: Remove old commented out code
authorBen Evans <bevans@cray.com>
Wed, 22 Jun 2016 15:19:54 +0000 (11:19 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 15 Aug 2016 16:23:55 +0000 (18:23 +0200)
These #if 0 blocks have been in place for years. Assume
they are not used and remove them

Signed-off-by: Ben Evans <bevans@cray.com>
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-8058
Reviewed-on: http://review.whamcloud.com/20414
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
Signed-off-by: James Simmons <jsimmons@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lnet/klnds/socklnd/socklnd.c
drivers/staging/lustre/lnet/klnds/socklnd/socklnd_cb.c
drivers/staging/lustre/lnet/lnet/lib-msg.c

index 07ec540946cdcc41aa17e6f884b4050815f34580..cbc9a9c5385f4819cadb9dc93f663a993fa3c318 100644 (file)
@@ -1468,11 +1468,6 @@ ksocknal_close_conn_locked(struct ksock_conn *conn, int error)
 
                conn->ksnc_route = NULL;
 
-#if 0     /* irrelevant with only eager routes */
-               /* make route least favourite */
-               list_del(&route->ksnr_list);
-               list_add_tail(&route->ksnr_list, &peer->ksnp_routes);
-#endif
                ksocknal_route_decref(route);     /* drop conn's ref on route */
        }
 
index 303576d815c64adadf7b3a00355f2c43e5721251..d53da552bd618b8b50dff421e32f1bf85d68f0e6 100644 (file)
@@ -2008,13 +2008,6 @@ ksocknal_connect(struct ksock_route *route)
                list_splice_init(&peer->ksnp_tx_queue, &zombies);
        }
 
-#if 0     /* irrelevant with only eager routes */
-       if (!route->ksnr_deleted) {
-               /* make this route least-favourite for re-selection */
-               list_del(&route->ksnr_list);
-               list_add_tail(&route->ksnr_list, &peer->ksnp_routes);
-       }
-#endif
        write_unlock_bh(&ksocknal_data.ksnd_global_lock);
 
        ksocknal_peer_failed(peer);
index 910e106e221d07b2686e5ca98e9b68fdf36bf9bb..0897e588bd548e0ebc1f173975dd39cebc022396 100644 (file)
@@ -449,23 +449,7 @@ lnet_finalize(lnet_ni_t *ni, lnet_msg_t *msg, int status)
 
        if (!msg)
                return;
-#if 0
-       CDEBUG(D_WARNING, "%s msg->%s Flags:%s%s%s%s%s%s%s%s%s%s%s txp %s rxp %s\n",
-              lnet_msgtyp2str(msg->msg_type), libcfs_id2str(msg->msg_target),
-              msg->msg_target_is_router ? "t" : "",
-              msg->msg_routing ? "X" : "",
-              msg->msg_ack ? "A" : "",
-              msg->msg_sending ? "S" : "",
-              msg->msg_receiving ? "R" : "",
-              msg->msg_delayed ? "d" : "",
-              msg->msg_txcredit ? "C" : "",
-              msg->msg_peertxcredit ? "c" : "",
-              msg->msg_rtrcredit ? "F" : "",
-              msg->msg_peerrtrcredit ? "f" : "",
-              msg->msg_onactivelist ? "!" : "",
-              !msg->msg_txpeer ? "<none>" : libcfs_nid2str(msg->msg_txpeer->lp_nid),
-              !msg->msg_rxpeer ? "<none>" : libcfs_nid2str(msg->msg_rxpeer->lp_nid));
-#endif
+
        msg->msg_ev.status = status;
 
        if (msg->msg_md) {