فهرست منبع

[SCSI] ppa: fix for machines with highmem

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>
Randy.Dunlap 19 سال پیش
والد
کامیت
78a904b654
1فایلهای تغییر یافته به همراه7 افزوده شده و 0 حذف شده
  1. 7 0
      drivers/scsi/ppa.c

+ 7 - 0
drivers/scsi/ppa.c

@@ -982,6 +982,12 @@ static int device_check(ppa_struct *dev)
 	return -ENODEV;
 	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 = {
 static struct scsi_host_template ppa_template = {
 	.module			= THIS_MODULE,
 	.module			= THIS_MODULE,
 	.proc_name		= "ppa",
 	.proc_name		= "ppa",
@@ -997,6 +1003,7 @@ static struct scsi_host_template ppa_template = {
 	.cmd_per_lun		= 1,
 	.cmd_per_lun		= 1,
 	.use_clustering		= ENABLE_CLUSTERING,
 	.use_clustering		= ENABLE_CLUSTERING,
 	.can_queue		= 1,
 	.can_queue		= 1,
+	.slave_alloc		= ppa_adjust_queue,
 };
 };
 
 
 /***************************************************************************
 /***************************************************************************