libata: Delegate nonrot flag setting to SCSI
authorMartin K. Petersen <martin.petersen@oracle.com>
Thu, 25 Jun 2009 01:01:45 +0000 (21:01 -0400)
committerJeff Garzik <jgarzik@redhat.com>
Tue, 1 Sep 2009 23:47:20 +0000 (19:47 -0400)
Now that the SCSI disk driver correctly handles non-rotational devices
we can move setting the queue flag to SCSI.

Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/ata/libata-scsi.c

index de3a0050760af9ea23f8673b03c3fe3caf24fa37..5d7a1bd37e9a193bfafb7f13eea2e7eef92b5c2b 100644 (file)
@@ -1119,10 +1119,6 @@ static int ata_scsi_dev_config(struct scsi_device *sdev,
 
                blk_queue_dma_drain(q, atapi_drain_needed, buf, ATAPI_MAX_DRAIN);
        } else {
-               if (ata_id_is_ssd(dev->id))
-                       queue_flag_set_unlocked(QUEUE_FLAG_NONROT,
-                                               sdev->request_queue);
-
                /* ATA devices must be sector aligned */
                blk_queue_update_dma_alignment(sdev->request_queue,
                                               ATA_SECT_SIZE - 1);