Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 117761
b: refs/heads/master
c: c77380d
h: refs/heads/master
i:
  117759: 4a083c3
v: v3
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Oct 23, 2008
1 parent 3681e07 commit 2ff1598
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 64c2eae225137a8f5a88b6a416fc182d36e8ae9f
refs/heads/master: c77380d4534c65cc9865a6b4efea44be4d039207
8 changes: 6 additions & 2 deletions trunk/drivers/ide/ide-disk.c
Original file line number Diff line number Diff line change
Expand Up @@ -600,6 +600,7 @@ static int ide_disk_check(ide_drive_t *drive, const char *s)
static void ide_disk_setup(ide_drive_t *drive)
{
struct ide_disk_obj *idkp = drive->driver_data;
struct request_queue *q = drive->queue;
ide_hwif_t *hwif = drive->hwif;
u16 *id = drive->id;
char *m = (char *)&id[ATA_ID_PROD];
Expand All @@ -626,11 +627,14 @@ static void ide_disk_setup(ide_drive_t *drive)
if (max_s > hwif->rqsize)
max_s = hwif->rqsize;

blk_queue_max_sectors(drive->queue, max_s);
blk_queue_max_sectors(q, max_s);
}

printk(KERN_INFO "%s: max request size: %dKiB\n", drive->name,
drive->queue->max_sectors / 2);
q->max_sectors / 2);

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

/* calculate drive capacity, and select LBA if possible */
ide_disk_get_capacity(drive);
Expand Down

0 comments on commit 2ff1598

Please sign in to comment.