]> git.baikalelectronics.ru Git - kernel.git/commit
dm cache: set minimum_io_size to cache's data block size
authorMike Snitzer <snitzer@redhat.com>
Sat, 19 Jul 2014 17:25:46 +0000 (13:25 -0400)
committerMike Snitzer <snitzer@redhat.com>
Fri, 1 Aug 2014 16:30:36 +0000 (12:30 -0400)
commitfe015d8381b34eb592fce11c2b4c4f23f603299b
treebb68d5e7cebb44f8d8b6351fb0510b680921196a
parentea099c17e126d143a424b1061a54bb35879bd9fd
dm cache: set minimum_io_size to cache's data block size

Before, if the block layer's limit stacking didn't establish an
optimal_io_size that was compatible with the cache's data block size
we'd set optimal_io_size to the data block size and minimum_io_size to 0
(which the block layer adjusts to be physical_block_size).

Update cache_io_hints() to set both minimum_io_size and optimal_io_size
to the cache's data block size.  This fixes an issue where mkfs.xfs
would create more XFS Allocation Groups on cache volumes than on a
normal linear LV of comparable size.

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-cache-target.c