Skip to content
Commit 882ec4e6 authored by Mike Snitzer's avatar Mike Snitzer
Browse files

dm table: stack 'chunk_sectors' limit to account for target-specific splitting



If target set ti->max_io_len it must be used when stacking
DM device's queue_limits to establish a 'chunk_sectors' that is
compatible with the IO stack.

By using lcm_not_zero() care is taken to avoid blindly overriding the
chunk_sectors limit stacked up by blk_stack_limits().

Depends-on: 07d098e6 ("block: allow 'chunk_sectors' to be non-power-of-2")
Signed-off-by: default avatarMike Snitzer <snitzer@redhat.com>
parent 1471308f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment