This fields is no longer used - except for an ASSERT().
It did have a use once, but that was removed in
Commit
ffd8e881bb98 ("LU-2456 lnet: Dynamic LNet
Configuration (DLC)")
Test-Parameters: trivial
Signed-off-by: Mr NeilBrown <neilb@suse.de>
Change-Id: I43d4c50d68fea3194f8515ac02599ef07b37ad60
Reviewed-on: https://review.whamcloud.com/36671
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Chris Horn <hornc@cray.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Amir Shehata <ashehata@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
*
* protected by lnet_net_lock/EX for update
* pt_version
*
* protected by lnet_net_lock/EX for update
* pt_version
* pt_hash[...]
* pt_peer_list
* pt_peers
* pt_hash[...]
* pt_peer_list
* pt_peers
*/
struct lnet_peer_table {
int pt_version; /* /proc validity stamp */
*/
struct lnet_peer_table {
int pt_version; /* /proc validity stamp */
- int pt_number; /* # peers_ni extant */
struct list_head *pt_hash; /* NID->peer hash */
struct list_head pt_peer_list; /* peers */
int pt_peers; /* # peers */
struct list_head *pt_hash; /* NID->peer hash */
struct list_head pt_peer_list; /* peers */
int pt_peers; /* # peers */
/* decrement the ref count on the peer table */
ptable = the_lnet.ln_peer_tables[lpni->lpni_cpt];
/* decrement the ref count on the peer table */
ptable = the_lnet.ln_peer_tables[lpni->lpni_cpt];
- LASSERT(ptable->pt_number > 0);
- ptable->pt_number--;
/*
* The peer_ni can no longer be found with a lookup. But there
/*
* The peer_ni can no longer be found with a lookup. But there
ptable = the_lnet.ln_peer_tables[lpni->lpni_cpt];
list_add_tail(&lpni->lpni_hashlist, &ptable->pt_hash[hash]);
ptable->pt_version++;
ptable = the_lnet.ln_peer_tables[lpni->lpni_cpt];
list_add_tail(&lpni->lpni_hashlist, &ptable->pt_hash[hash]);
ptable->pt_version++;
/* This is the 1st refcount on lpni. */
atomic_inc(&lpni->lpni_refcount);
}
/* This is the 1st refcount on lpni. */
atomic_inc(&lpni->lpni_refcount);
}