|
@@ -1438,9 +1438,14 @@ mptscsih_qcmd(struct scsi_cmnd *SCpnt, void (*done)(struct scsi_cmnd *))
|
|
|
&& (vdevice->vtarget->tflags & MPT_TARGET_FLAGS_Q_YES)
|
|
|
&& (SCpnt->device->tagged_supported)) {
|
|
|
scsictl = scsidir | MPI_SCSIIO_CONTROL_SIMPLEQ;
|
|
|
- } else {
|
|
|
+ if (SCpnt->request && SCpnt->request->ioprio) {
|
|
|
+ if (((SCpnt->request->ioprio & 0x7) == 1) ||
|
|
|
+ !(SCpnt->request->ioprio & 0x7))
|
|
|
+ scsictl |= MPI_SCSIIO_CONTROL_HEADOFQ;
|
|
|
+ }
|
|
|
+ } else
|
|
|
scsictl = scsidir | MPI_SCSIIO_CONTROL_UNTAGGED;
|
|
|
- }
|
|
|
+
|
|
|
|
|
|
/* Use the above information to set up the message frame
|
|
|
*/
|