From: Mr NeilBrown Date: Thu, 22 Aug 2019 05:19:20 +0000 (+1000) Subject: LU-6142 ptlrpc: remove bd_import_generation field. X-Git-Tag: 2.12.90~168 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=531bbc669d66ac97a7b943ca4062a2c5b2589249;p=fs%2Flustre-release.git 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 --- 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;