From 7b9bdaafb101fceda098d10177802b6aca5b0687 Mon Sep 17 00:00:00 2001 From: Ronnie Sahlberg Date: Mon, 19 Dec 2011 15:43:27 +1100 Subject: [PATCH] TMGMT: dont hardcode the lun we send to to 2, use the lun that is passed in as argument --- lib/task_mgmt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/task_mgmt.c b/lib/task_mgmt.c index 34f86d1..cc12585 100644 --- a/lib/task_mgmt.c +++ b/lib/task_mgmt.c @@ -53,7 +53,7 @@ iscsi_task_mgmt_async(struct iscsi_context *iscsi, iscsi_pdu_set_pduflags(pdu, 0x80 | function); /* lun */ - iscsi_pdu_set_lun(pdu, 2); + iscsi_pdu_set_lun(pdu, lun); /* ritt */ iscsi_pdu_set_ritt(pdu, ritt);