Skip to content

Commit 2aa0102

Browse files
tyreldmartinkpetersen
authored andcommitted
scsi: ibmvfc: Use correlation token to tag commands
The vfcFrame correlation field is a 64bit handle that is intended to trace I/O operations through both the client stack and VIOS stack when the underlying physical FC adapter supports tagging. Tag vfcFrames with the associated ibmvfc_event pointer handle. Link: https://lore.kernel.org/r/20201117185031.129939-3-tyreld@linux.ibm.com Signed-off-by: Tyrel Datwyler <tyreld@linux.ibm.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent 4e07161 commit 2aa0102

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/scsi/ibmvscsi/ibmvfc.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1693,6 +1693,8 @@ static int ibmvfc_queuecommand_lck(struct scsi_cmnd *cmnd,
16931693
vfc_cmd->iu.pri_task_attr = IBMVFC_SIMPLE_TASK;
16941694
}
16951695

1696+
vfc_cmd->correlation = cpu_to_be64(evt);
1697+
16961698
if (likely(!(rc = ibmvfc_map_sg_data(cmnd, evt, vfc_cmd, vhost->dev))))
16971699
return ibmvfc_send_event(evt, vhost, 0);
16981700

@@ -2370,6 +2372,8 @@ static int ibmvfc_abort_task_set(struct scsi_device *sdev)
23702372
tmf->iu.tmf_flags = IBMVFC_ABORT_TASK_SET;
23712373
evt->sync_iu = &rsp_iu;
23722374

2375+
tmf->correlation = cpu_to_be64(evt);
2376+
23732377
init_completion(&evt->comp);
23742378
rsp_rc = ibmvfc_send_event(evt, vhost, default_timeout);
23752379
}

0 commit comments

Comments
 (0)