aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames.Smart@Emulex.Com <James.Smart@Emulex.Com>2005-08-10 15:02:37 -0400
committerJames Bottomley <jejb@mulgrave.(none)>2005-08-12 13:08:40 -0400
commit69859dc47744430ecda16522b0791b6d17e3fa93 (patch)
tree9a0caa381b4302e4bd29f67cff2805a9198f4ab9
parent8cbdc5fffa15d5c573e2531c6f533822d08b6b0f (diff)
[SCSI] lpfc driver 8.0.30 : task mgmt bit clearing
Clear task management bits when preparing SCSI commands In lpfc_scsi_prep_cmnd, clear the task management bits (fcpCntl2 member in the fcp_cmd structure) when preparing regular SCSI commands. Signed-off-by: James Smart <James.Smart@emulex.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
-rw-r--r--drivers/scsi/lpfc/lpfc_scsi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/scsi/lpfc/lpfc_scsi.c b/drivers/scsi/lpfc/lpfc_scsi.c
index 7cb1e467734f..15e747faaa5f 100644
--- a/drivers/scsi/lpfc/lpfc_scsi.c
+++ b/drivers/scsi/lpfc/lpfc_scsi.c
@@ -450,6 +450,8 @@ lpfc_scsi_prep_cmnd(struct lpfc_hba * phba, struct lpfc_scsi_buf * lpfc_cmd,
450 int datadir = scsi_cmnd->sc_data_direction; 450 int datadir = scsi_cmnd->sc_data_direction;
451 451
452 lpfc_cmd->fcp_rsp->rspSnsLen = 0; 452 lpfc_cmd->fcp_rsp->rspSnsLen = 0;
453 /* clear task management bits */
454 lpfc_cmd->fcp_cmnd->fcpCntl2 = 0;
453 455
454 lpfc_put_lun(lpfc_cmd->fcp_cmnd, lpfc_cmd->pCmd->device->lun); 456 lpfc_put_lun(lpfc_cmd->fcp_cmnd, lpfc_cmd->pCmd->device->lun);
455 457