[stgt] [PATCH] kill unused fields in struct mgmt_req

FUJITA Tomonori fujita.tomonori at lab.ntt.co.jp
Wed Jul 20 18:34:41 CEST 2011


They were used for in-kernel llds.

Signed-off-by: FUJITA Tomonori <fujita.tomonori at lab.ntt.co.jp>
---
 usr/target.c |    3 ---
 usr/tgtd.h   |    4 ----
 2 files changed, 0 insertions(+), 7 deletions(-)

diff --git a/usr/target.c b/usr/target.c
index 5f04cf9..0b01070 100644
--- a/usr/target.c
+++ b/usr/target.c
@@ -1103,7 +1103,6 @@ void target_cmd_done(struct scsi_cmd *cmd)
 	mreq = cmd->mreq;
 	if (mreq && !--mreq->busy) {
 		mreq->result = mreq->function == ABORT_TASK ? -EEXIST : 0;
-		mreq->itn_id = cmd->cmd_itn_id;
 		tgt_drivers[cmd->c_target->lid]->mgmt_end_notify(mreq);
 		free(mreq);
 	}
@@ -1186,9 +1185,7 @@ enum mgmt_req_result target_mgmt_request(int tid, uint64_t itn_id,
 	}
 
 	mreq->mid = req_id;
-	mreq->itn_id = itn_id;
 	mreq->function = function;
-	mreq->host_no = host_no;
 
 	switch (function) {
 	case ABORT_TASK:
diff --git a/usr/tgtd.h b/usr/tgtd.h
index 3f1eb5b..4871c73 100644
--- a/usr/tgtd.h
+++ b/usr/tgtd.h
@@ -200,10 +200,6 @@ struct mgmt_req {
 	int busy;
 	int function;
 	int result;
-
-	/* for kernel llds */
-	int host_no;
-	uint64_t itn_id;
 };
 
 enum mgmt_req_result {
-- 
1.7.2.5

--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html



More information about the stgt mailing list