Skip to content

Commit

Permalink
ide: can't use SSD/non-rotational queue flag for all CFA devices
Browse files Browse the repository at this point in the history
Some rotating disks also present themselves as CFA devices.

Reported-by: Alan Cox <[email protected]>
Acked-by: Sergei Shtylyov <[email protected]>
Signed-off-by: Bartlomiej Zolnierkiewicz <[email protected]>
  • Loading branch information
bzolnier committed Jan 14, 2009
1 parent 4a24626 commit 655772c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/ide/ide-disk.c
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,7 @@ static void ide_disk_setup(ide_drive_t *drive)
printk(KERN_INFO "%s: max request size: %dKiB\n", drive->name,
q->max_sectors / 2);

if (ata_id_is_ssd(id) || ata_id_is_cfa(id))
if (ata_id_is_ssd(id))
queue_flag_set_unlocked(QUEUE_FLAG_NONROT, q);

/* calculate drive capacity, and select LBA if possible */
Expand Down

0 comments on commit 655772c

Please sign in to comment.