]> git.baikalelectronics.ru Git - kernel.git/commit
dm: change max_io_len() to use blk_max_size_offset()
authorMike Snitzer <snitzer@redhat.com>
Sat, 19 Sep 2020 00:22:30 +0000 (20:22 -0400)
committerMike Snitzer <snitzer@redhat.com>
Tue, 29 Sep 2020 20:33:02 +0000 (16:33 -0400)
commit5091cdec56faeaefa79de4b6cb3c3c55e50d1ac3
treece40f8d6273f7e5faf8ac67bc17b736d07d9f715
parent882ec4e609c1a6de1836e765905f62de1502ae1e
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: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm.c