aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAlexander Viro <viro@parcelfarce.linux.theplanet.co.uk>2004-08-05 03:56:22 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-08-05 03:56:22 -0700
commit8b2e5480df70900748747585f15ffb63d88c5859 (patch)
treec48fa6c20d600ddd141ecf56715b0c2b1c0f8b42 /drivers
parent6254a8bad82fe98efa18ddd35ed557fe96477077 (diff)
downloadhistory-8b2e5480df70900748747585f15ffb63d88c5859.tar.gz
[PATCH] imm.c oops fix
Fix bug #3125: This should fix the problem; however, we will need to repeat that for all PIO SCSI drivers (another immediate victim is ppa.c). We should start looking for sane solution; I _really_ don't like the kludge with using ->slave_alloc() for fixups after scsi_alloc_queue(). Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/scsi/imm.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/scsi/imm.c b/drivers/scsi/imm.c
index 1bf42180f2d48d..915d593fbf21b2 100644
--- a/drivers/scsi/imm.c
+++ b/drivers/scsi/imm.c
@@ -1118,6 +1118,12 @@ static int device_check(imm_struct *dev)
return -ENODEV;
}
+static int imm_adjust_queue(struct scsi_device *device)
+{
+ blk_queue_bounce_limit(device->request_queue, BLK_BOUNCE_HIGH);
+ return 0;
+}
+
static struct scsi_host_template imm_template = {
.module = THIS_MODULE,
.proc_name = "imm",
@@ -1133,6 +1139,7 @@ static struct scsi_host_template imm_template = {
.cmd_per_lun = 1,
.use_clustering = ENABLE_CLUSTERING,
.can_queue = 1,
+ .slave_alloc = imm_adjust_queue,
};
/***************************************************************************