lkml.org 
[lkml]   [2004]   [Jul]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    SubjectRe: 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/
    \
     
     \ /
      Last update: 2005-03-22 14:04    [W:4.121 / U:0.012 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site