Skip to content

Commit

Permalink
[SCSI] ppa: fix for machines with highmem
Browse files Browse the repository at this point in the history
ppa cannot handle highmem pages, and like imm, which already has
this patch, the device is slow, so performance is not a big issue,
so just force pages to be in low memory (hence mapped).

Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
  • Loading branch information
Randy.Dunlap authored and James Bottomley committed May 19, 2006
1 parent 4ff42a6 commit 78a904b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions drivers/scsi/ppa.c
Original file line number Diff line number Diff line change
Expand Up @@ -982,6 +982,12 @@ static int device_check(ppa_struct *dev)
return -ENODEV;
}

static int ppa_adjust_queue(struct scsi_device *device)
{
blk_queue_bounce_limit(device->request_queue, BLK_BOUNCE_HIGH);
return 0;
}

static struct scsi_host_template ppa_template = {
.module = THIS_MODULE,
.proc_name = "ppa",
Expand All @@ -997,6 +1003,7 @@ static struct scsi_host_template ppa_template = {
.cmd_per_lun = 1,
.use_clustering = ENABLE_CLUSTERING,
.can_queue = 1,
.slave_alloc = ppa_adjust_queue,
};

/***************************************************************************
Expand Down

0 comments on commit 78a904b

Please sign in to comment.