lnet_net.net_state is set but never used. So the code that sets
it isn't tested and might be wrong. Best to just remove it.
Test-Parameters: trivial
Signed-off-by: Mr NeilBrown <neilb@suse.de>
Change-Id: Ia11b8c0da0286f82c43be353944e036b5ea936c6
Reviewed-on: https://review.whamcloud.com/36655
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Chris Horn <hornc@cray.com>
Reviewed-by: Amir Shehata <ashehata@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
/* dying LND instances */
struct list_head net_ni_zombie;
- /* network state */
- enum lnet_net_state net_state;
-
/* when I was last alive */
time64_t net_last_alive;
lnet_net_lock(LNET_LOCK_EX);
- net->net_state = LNET_NET_STATE_DELETING;
-
list_del_init(&net->net_list);
while (!list_empty(&net->net_ni_list)) {
*/
lnet_net_free(net);
} else {
- net->net_state = LNET_NET_STATE_ACTIVE;
/*
* restore tunables after it has been overwitten by the
* lnd
net->net_id = net_id;
net->net_last_alive = ktime_get_real_seconds();
- net->net_state = LNET_NET_STATE_INIT;
/* initialize global paramters to undefiend */
net->net_tunables.lct_peer_timeout = -1;