da: Independant read/write bioqs are used, so no need to use bioqdisksort
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Mon, 18 Nov 2013 13:35:40 +0000 (21:35 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Mon, 18 Nov 2013 13:35:40 +0000 (21:35 +0800)
sys/bus/cam/scsi/scsi_da.c

index aa0ce8d..16a04c3 100644 (file)
@@ -733,11 +733,11 @@ dastrategy(struct dev_strategy_args *ap)
         * Place it in the queue of disk activities for this disk
         */
        if (bp->b_cmd == BUF_CMD_WRITE || bp->b_cmd == BUF_CMD_FLUSH)
-               bioqdisksort(&softc->bio_queue_wr, bio);
+               bioq_insert_tail(&softc->bio_queue_wr, bio);
        else if (bp->b_cmd == BUF_CMD_FREEBLKS) 
-               bioqdisksort(&softc->bio_queue_trim, bio);
+               bioq_insert_tail(&softc->bio_queue_trim, bio);
        else
-               bioqdisksort(&softc->bio_queue_rd, bio);
+               bioq_insert_tail(&softc->bio_queue_rd, bio);
        
        /*
         * Schedule ourselves for performing the work.