[lustre-devel] [PATCH 474/622] lnet: socklnd: remove ksnp_sharecount

James Simmons jsimmons at infradead.org
Thu Feb 27 13:15:42 PST 2020


From: Mr NeilBrown <neilb at suse.com>

This field is never set, though its value is printed.
Remove it.

WC-bug-id: https://jira.whamcloud.com/browse/LU-6142
Lustre-commit: 408a5a527567 ("LU-6142 socklnd: remove ksnp_sharecount")
Signed-off-by: Mr NeilBrown <neilb at suse.com>
Reviewed-on: https://review.whamcloud.com/35892
Reviewed-by: Andreas Dilger <adilger at whamcloud.com>
Reviewed-by: James Simmons <jsimmons at infradead.org>
Reviewed-by: Shaun Tancheff <stancheff at cray.com>
Reviewed-by: Oleg Drokin <green at whamcloud.com>
Signed-off-by: James Simmons <jsimmons at infradead.org>
---
 net/lnet/klnds/socklnd/socklnd.c | 4 ++--
 net/lnet/klnds/socklnd/socklnd.h | 1 -
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/net/lnet/klnds/socklnd/socklnd.c b/net/lnet/klnds/socklnd/socklnd.c
index 78f6c7e..e2a9819 100644
--- a/net/lnet/klnds/socklnd/socklnd.c
+++ b/net/lnet/klnds/socklnd/socklnd.c
@@ -2471,10 +2471,10 @@ static int ksocknal_push(struct lnet_ni *ni, struct lnet_process_id id)
 			if (peer_ni->ksnp_ni != ni)
 				continue;
 
-			CWARN("Active peer_ni on shutdown: %s, ref %d, scnt %d, closing %d, accepting %d, err %d, zcookie %llu, txq %d, zc_req %d\n",
+			CWARN("Active peer_ni on shutdown: %s, ref %d, closing %d, accepting %d, err %d, zcookie %llu, txq %d, zc_req %d\n",
 			      libcfs_id2str(peer_ni->ksnp_id),
 			      atomic_read(&peer_ni->ksnp_refcount),
-			      peer_ni->ksnp_sharecount, peer_ni->ksnp_closing,
+			      peer_ni->ksnp_closing,
 			      peer_ni->ksnp_accepting, peer_ni->ksnp_error,
 			      peer_ni->ksnp_zc_next_cookie,
 			      !list_empty(&peer_ni->ksnp_tx_queue),
diff --git a/net/lnet/klnds/socklnd/socklnd.h b/net/lnet/klnds/socklnd/socklnd.h
index 80c2e19..efdd02e 100644
--- a/net/lnet/klnds/socklnd/socklnd.h
+++ b/net/lnet/klnds/socklnd/socklnd.h
@@ -415,7 +415,6 @@ struct ksock_peer {
 							 */
 	struct lnet_process_id	ksnp_id;		/* who's on the other end(s) */
 	atomic_t		ksnp_refcount;		/* # users */
-	int			ksnp_sharecount;	/* lconf usage counter */
 	int			ksnp_closing;		/* being closed */
 	int			ksnp_accepting;		/* # passive connections pending
 							 */
-- 
1.8.3.1



More information about the lustre-devel mailing list