lib/iscsi: Save LUN ID into iSCSI task when handling Task Management Function Request
LUN ID was not saved in iSCSI task, and it didn't work when we attached more than one LUN. Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Change-Id: I75388ee6c1e69bb567cf7c5c691315c51cab70eb Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/471202 Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
parent
5f37368f19
commit
d7c4a20f52
@ -3693,6 +3693,7 @@ iscsi_op_task(struct spdk_iscsi_conn *conn, struct spdk_iscsi_pdu *pdu)
|
||||
task->scsi.initiator_port = conn->initiator_port;
|
||||
task->tag = task_tag;
|
||||
task->scsi.lun = spdk_scsi_dev_get_lun(dev, lun_i);
|
||||
task->lun_id = lun_i;
|
||||
|
||||
if (task->scsi.lun == NULL) {
|
||||
task->scsi.response = SPDK_SCSI_TASK_MGMT_RESP_INVALID_LUN;
|
||||
|
Loading…
Reference in New Issue
Block a user