[lkml]   [2010]   [Dec]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH for-2.6.37] block: max hardware sectors limit wrapper
    >>>>> "Mike" == Mike Snitzer <> writes:

    Mike> Implement blk_limits_max_hw_sectors() and make
    Mike> blk_queue_max_hw_sectors() a wrapper around it.

    Mike> DM needs this to avoid setting queue_limits' max_hw_sectors and
    Mike> max_sectors directly. dm_set_device_limits() now leverages
    Mike> blk_limits_max_hw_sectors() logic to establish the appropriate
    Mike> max_hw_sectors minimum (PAGE_SIZE). Fixes issue where DM was
    Mike> incorrectly setting max_sectors rather than max_hw_sectors (which
    Mike> caused dm_merge_bvec()'s max_hw_sectors check to be ineffective).

    Acked-by: Martin K. Petersen <>

    Jens, please apply.

    Martin K. Petersen Oracle Linux Engineering

     \ /
      Last update: 2010-12-17 00:53    [W:0.019 / U:2.240 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site