aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/message/fusion
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2016-10-13 04:46:41 -0400
committerMartin K. Petersen <martin.petersen@oracle.com>2016-11-08 17:29:48 -0500
commit4e6f767dba1c9a7279b3b24694cdf3b73e00f722 (patch)
tree2dce1760c0ea3697977bed23c4bb76f2e0bef318 /drivers/message/fusion
parent9af9fecb9e5380c778e89501aefe8bc779783c01 (diff)
scsi: mptscsih: Remove bogus interpretation of request->ioprio
Having an I/O priority does not mean we should send all requests as HEAD OF QUEUE tags. Reported-by: Adam Manzanares <adam.manzanares@wdc.com> Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Hannes Reinicke <hare@suse.de> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/message/fusion')
-rw-r--r--drivers/message/fusion/mptscsih.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/drivers/message/fusion/mptscsih.c b/drivers/message/fusion/mptscsih.c
index 6c9fc11efb87..08a807d6a44f 100644
--- a/drivers/message/fusion/mptscsih.c
+++ b/drivers/message/fusion/mptscsih.c
@@ -1366,15 +1366,10 @@ mptscsih_qcmd(struct scsi_cmnd *SCpnt)
1366 /* Default to untagged. Once a target structure has been allocated, 1366 /* Default to untagged. Once a target structure has been allocated,
1367 * use the Inquiry data to determine if device supports tagged. 1367 * use the Inquiry data to determine if device supports tagged.
1368 */ 1368 */
1369 if ((vdevice->vtarget->tflags & MPT_TARGET_FLAGS_Q_YES) 1369 if ((vdevice->vtarget->tflags & MPT_TARGET_FLAGS_Q_YES) &&
1370 && (SCpnt->device->tagged_supported)) { 1370 SCpnt->device->tagged_supported)
1371 scsictl = scsidir | MPI_SCSIIO_CONTROL_SIMPLEQ; 1371 scsictl = scsidir | MPI_SCSIIO_CONTROL_SIMPLEQ;
1372 if (SCpnt->request && SCpnt->request->ioprio) { 1372 else
1373 if (((SCpnt->request->ioprio & 0x7) == 1) ||
1374 !(SCpnt->request->ioprio & 0x7))
1375 scsictl |= MPI_SCSIIO_CONTROL_HEADOFQ;
1376 }
1377 } else
1378 scsictl = scsidir | MPI_SCSIIO_CONTROL_UNTAGGED; 1373 scsictl = scsidir | MPI_SCSIIO_CONTROL_UNTAGGED;
1379 1374
1380 1375