Skip to content
Commit 5091cdec authored by Mike Snitzer's avatar Mike Snitzer
Browse files

dm: change max_io_len() to use blk_max_size_offset()



Using blk_max_size_offset() enables DM core's splitting to impose
ti->max_io_len (via q->limits.chunk_sectors) and also fallback to
respecting q->limits.max_sectors if chunk_sectors isn't set.

Signed-off-by: default avatarMike Snitzer <snitzer@redhat.com>
parent 882ec4e6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment