summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/aha152x.c
diff options
context:
space:
mode:
authorBoaz Harrosh <bharrosh@panasas.com>2007-07-29 22:18:20 +0300
committerJames Bottomley <jejb@mulgrave.localdomain>2007-08-04 09:11:38 -0500
commitb1ee0795276f976118f832313488e6daf83ff542 (patch)
treeeffc8239ddb71a2ae8a8a39209664a132f21660d /drivers/scsi/aha152x.c
parent50535df3ee3d3407ff61044692942288df7fcd6a (diff)
downloadlinux-stable-b1ee0795276f976118f832313488e6daf83ff542.tar.gz
linux-stable-b1ee0795276f976118f832313488e6daf83ff542.tar.bz2
linux-stable-b1ee0795276f976118f832313488e6daf83ff542.zip
[SCSI] aha152x: use bounce buffer
Cause highmem buffers to be bounced to low memory until this driver supports highmem addresses. Otherwise it just oopses on NULL buffer addresses. Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com> Signed-off-by: Boaz Harrosh <bharrosh@panasas.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/aha152x.c')
-rw-r--r--drivers/scsi/aha152x.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/scsi/aha152x.c b/drivers/scsi/aha152x.c
index 0afc0c965333..c841f11f4e32 100644
--- a/drivers/scsi/aha152x.c
+++ b/drivers/scsi/aha152x.c
@@ -3474,6 +3474,12 @@ static int aha152x_proc_info(struct Scsi_Host *shpnt, char *buffer, char **start
return thislength < length ? thislength : length;
}
+static int aha152x_adjust_queue(struct scsi_device *device)
+{
+ blk_queue_bounce_limit(device->request_queue, BLK_BOUNCE_HIGH);
+ return 0;
+}
+
static struct scsi_host_template aha152x_driver_template = {
.module = THIS_MODULE,
.name = AHA152X_REVID,
@@ -3490,6 +3496,7 @@ static struct scsi_host_template aha152x_driver_template = {
.sg_tablesize = SG_ALL,
.cmd_per_lun = 1,
.use_clustering = DISABLE_CLUSTERING,
+ .slave_alloc = aha152x_adjust_queue,
};
#if !defined(PCMCIA)