[lustre-devel] [PATCH 462/622] lustre: ptlrpc: remove srv_threads from struct ptlrpc_service

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


From: Mr NeilBrown <neilb at suse.com>

The threads are not stored here - nothing is.
Threads are stored in svcpt->scp_threads.
So remove the field and update the comment.

WC-bug-id: https://jira.whamcloud.com/browse/LU-6142
Lustre-commit: 6d1062cdffca ("LU-6142 ptlrpc: remove srv_threads from struct ptlrpc_service")
Signed-off-by: Mr NeilBrown <neilb at suse.com>
Reviewed-on: https://review.whamcloud.com/35881
Reviewed-by: Andreas Dilger <adilger at whamcloud.com>
Reviewed-by: James Simmons <jsimmons at infradead.org>
Reviewed-by: Arshad Hussain <arshad.super at gmail.com>
Reviewed-by: Shaun Tancheff <stancheff at cray.com>
Signed-off-by: James Simmons <jsimmons at infradead.org>
---
 fs/lustre/include/lustre_net.h | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/fs/lustre/include/lustre_net.h b/fs/lustre/include/lustre_net.h
index bec92cf..68db603 100644
--- a/fs/lustre/include/lustre_net.h
+++ b/fs/lustre/include/lustre_net.h
@@ -1314,7 +1314,7 @@ enum {
  */
 struct ptlrpc_thread {
 	/**
-	 * List of active threads in svc->srv_threads
+	 * List of active threads in svcpt->scp_threads
 	 */
 	struct list_head		t_link;
 	/**
@@ -1474,8 +1474,6 @@ struct ptlrpc_service {
 	char				*srv_name;
 	/** only statically allocated strings here; we don't clean them */
 	char				*srv_thread_name;
-	/** service thread list */
-	struct list_head		srv_threads;
 	/** threads # should be created for each partition on initializing */
 	int				srv_nthrs_cpt_init;
 	/** limit of threads number for each partition */
-- 
1.8.3.1



More information about the lustre-devel mailing list