ide-disk: set non-rotational queue flag for SSD and CF devices

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>

+6 -2
+6 -2
drivers/ide/ide-disk.c
··· 600 600 static void ide_disk_setup(ide_drive_t *drive) 601 601 { 602 602 struct ide_disk_obj *idkp = drive->driver_data; 603 + struct request_queue *q = drive->queue; 603 604 ide_hwif_t *hwif = drive->hwif; 604 605 u16 *id = drive->id; 605 606 char *m = (char *)&id[ATA_ID_PROD]; ··· 627 626 if (max_s > hwif->rqsize) 628 627 max_s = hwif->rqsize; 629 628 630 - blk_queue_max_sectors(drive->queue, max_s); 629 + blk_queue_max_sectors(q, max_s); 631 630 } 632 631 633 632 printk(KERN_INFO "%s: max request size: %dKiB\n", drive->name, 634 - drive->queue->max_sectors / 2); 633 + q->max_sectors / 2); 634 + 635 + if (ata_id_is_ssd(id) || ata_id_is_cfa(id)) 636 + queue_flag_set_unlocked(QUEUE_FLAG_NONROT, q); 635 637 636 638 /* calculate drive capacity, and select LBA if possible */ 637 639 ide_disk_get_capacity(drive);