Messages in this thread Patch in this message | | | Date | Tue, 27 Jul 2004 10:06:12 +0200 | From | Ingo Molnar <> | Subject | Re: no luck with max_sectors_kb (Re: voluntary-preempt-2.6.8-rc2-J4) |
| |
* 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; - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |