]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/message/fusion/mptscsih.c
Merge git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6
[net-next-2.6.git] / drivers / message / fusion / mptscsih.c
index 57752751712bb087127f8ab8ccbe1a38252d8bc5..4a7d1afcb666aabda50adb4f6122a91a9c824713 100644 (file)
@@ -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
         */
@@ -1796,7 +1801,7 @@ mptscsih_abort(struct scsi_cmnd * SCpnt)
                dtmprintk(ioc, printk(MYIOC_s_DEBUG_FMT "task abort: "
                   "Command not in the active list! (sc=%p)\n", ioc->name,
                   SCpnt));
-               retval = 0;
+               retval = SUCCESS;
                goto out;
        }