Re: no luck with max_sectors_kb (Re: voluntary-preempt-2.6.8-rc2-J4)

Ingo Molnar
2004-07-27T08:07:27Z

* Ingo Molnar <mingo@elte.hu> 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;