TMGMT: dont hardcode the lun we send to to 2, use the lun that is passed in as argument

This commit is contained in:
Ronnie Sahlberg
2011-12-19 15:43:27 +11:00
parent fa4d3aa7eb
commit 7b9bdaafb1

View File

@@ -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);