Re: no luck with max_sectors_kb (Re: voluntary-preempt-2.6.8-rc2-J4)
From: Ingo Molnar
Date: Tue Jul 27 2004 - 03:10:33 EST
* Ingo Molnar <mingo@xxxxxxx> wrote:
> ok, dm (and some other layered block drivers) set q->max_sectors
> directly instead of using blk_queue_max_sectors().
does the patch below fix your DM problems?
Ingo
--- linux/drivers/md/dm-table.c.orig
+++ linux/drivers/md/dm-table.c
@@ -825,7 +825,7 @@ void dm_table_set_restrictions(struct dm
* Make sure we obey the optimistic sub devices
* restrictions.
*/
- q->max_sectors = t->limits.max_sectors;
+ blk_queue_max_sectors(q, t->limits.max_sectors);
q->max_phys_segments = t->limits.max_phys_segments;
q->max_hw_segments = t->limits.max_hw_segments;
q->hardsect_size = t->limits.hardsect_size;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/