diff options
author | Andrea Bastoni <bastoni@cs.unc.edu> | 2010-05-30 19:16:45 -0400 |
---|---|---|
committer | Andrea Bastoni <bastoni@cs.unc.edu> | 2010-05-30 19:16:45 -0400 |
commit | ada47b5fe13d89735805b566185f4885f5a3f750 (patch) | |
tree | 644b88f8a71896307d71438e9b3af49126ffb22b /drivers/message/i2o/i2o_block.c | |
parent | 43e98717ad40a4ae64545b5ba047c7b86aa44f4f (diff) | |
parent | 3280f21d43ee541f97f8cda5792150d2dbec20d5 (diff) |
Merge branch 'wip-2.6.34' into old-private-masterarchived-private-master
Diffstat (limited to 'drivers/message/i2o/i2o_block.c')
-rw-r--r-- | drivers/message/i2o/i2o_block.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/message/i2o/i2o_block.c b/drivers/message/i2o/i2o_block.c index d505b68cd372..fc593fbab696 100644 --- a/drivers/message/i2o/i2o_block.c +++ b/drivers/message/i2o/i2o_block.c | |||
@@ -51,6 +51,7 @@ | |||
51 | */ | 51 | */ |
52 | 52 | ||
53 | #include <linux/module.h> | 53 | #include <linux/module.h> |
54 | #include <linux/slab.h> | ||
54 | #include <linux/i2o.h> | 55 | #include <linux/i2o.h> |
55 | 56 | ||
56 | #include <linux/mempool.h> | 57 | #include <linux/mempool.h> |
@@ -940,7 +941,7 @@ static const struct block_device_operations i2o_block_fops = { | |||
940 | * Allocate memory for the i2o_block_device struct, gendisk and request | 941 | * Allocate memory for the i2o_block_device struct, gendisk and request |
941 | * queue and initialize them as far as no additional information is needed. | 942 | * queue and initialize them as far as no additional information is needed. |
942 | * | 943 | * |
943 | * Returns a pointer to the allocated I2O Block device on succes or a | 944 | * Returns a pointer to the allocated I2O Block device on success or a |
944 | * negative error code on failure. | 945 | * negative error code on failure. |
945 | */ | 946 | */ |
946 | static struct i2o_block_device *i2o_block_device_alloc(void) | 947 | static struct i2o_block_device *i2o_block_device_alloc(void) |
@@ -1065,9 +1066,8 @@ static int i2o_block_probe(struct device *dev) | |||
1065 | queue = gd->queue; | 1066 | queue = gd->queue; |
1066 | queue->queuedata = i2o_blk_dev; | 1067 | queue->queuedata = i2o_blk_dev; |
1067 | 1068 | ||
1068 | blk_queue_max_phys_segments(queue, I2O_MAX_PHYS_SEGMENTS); | 1069 | blk_queue_max_hw_sectors(queue, max_sectors); |
1069 | blk_queue_max_sectors(queue, max_sectors); | 1070 | blk_queue_max_segments(queue, i2o_sg_tablesize(c, body_size)); |
1070 | blk_queue_max_hw_segments(queue, i2o_sg_tablesize(c, body_size)); | ||
1071 | 1071 | ||
1072 | osm_debug("max sectors = %d\n", queue->max_sectors); | 1072 | osm_debug("max sectors = %d\n", queue->max_sectors); |
1073 | osm_debug("phys segments = %d\n", queue->max_phys_segments); | 1073 | osm_debug("phys segments = %d\n", queue->max_phys_segments); |