From 531bbc669d66ac97a7b943ca4062a2c5b2589249 Mon Sep 17 00:00:00 2001 From: Mr NeilBrown Date: Thu, 22 Aug 2019 15:19:20 +1000 Subject: [PATCH] LU-6142 ptlrpc: remove bd_import_generation field. This field is set, but never accessed. So remove it. Test-Parameters: trivial Signed-off-by: Mr NeilBrown Change-Id: I26791e9fbc50676a705a94755674945eea9bf262 Reviewed-on: https://review.whamcloud.com/35880 Tested-by: jenkins Reviewed-by: Andreas Dilger Tested-by: Maloo Reviewed-by: James Simmons Reviewed-by: Shaun Tancheff Reviewed-by: Arshad Hussain --- lustre/include/lustre_net.h | 2 -- lustre/ptlrpc/client.c | 1 - 2 files changed, 3 deletions(-) diff --git a/lustre/include/lustre_net.h b/lustre/include/lustre_net.h index 30fbde9..ddf7191 100644 --- a/lustre/include/lustre_net.h +++ b/lustre/include/lustre_net.h @@ -1432,8 +1432,6 @@ struct ptlrpc_bulk_desc { unsigned long bd_registered:1; /** For serialization with callback */ spinlock_t bd_lock; - /** Import generation when request for this bulk was sent */ - int bd_import_generation; /** {put,get}{source,sink}{kvec,kiov} */ enum ptlrpc_bulk_op_type bd_type; /** LNet portal for this bulk */ diff --git a/lustre/ptlrpc/client.c b/lustre/ptlrpc/client.c index b6c7782..300ec30 100644 --- a/lustre/ptlrpc/client.c +++ b/lustre/ptlrpc/client.c @@ -217,7 +217,6 @@ struct ptlrpc_bulk_desc *ptlrpc_prep_bulk_imp(struct ptlrpc_request *req, if (!desc) RETURN(NULL); - desc->bd_import_generation = req->rq_import_generation; desc->bd_import = class_import_get(imp); desc->bd_req = req; -- 1.8.3.1