dm thin: adjust max_sectors_kb based on thinp blocksize
authorMike Snitzer <snitzer@redhat.com>
Thu, 9 Oct 2014 22:43:25 +0000 (18:43 -0400)
committerMike Snitzer <snitzer@redhat.com>
Mon, 10 Nov 2014 20:25:27 +0000 (15:25 -0500)
commit604ea90641b45f41f8dee34ce45694f1e0c53a5a
treea438aa17637a26cf32284b635c792f83e42ad6b2
parent7d327fe051edcccf54da7b6733c58992473f228b
dm thin: adjust max_sectors_kb based on thinp blocksize

Allows for filesystems to submit bios that are a factor of the thinp
blocksize, improving dm-thinp efficiency (particularly when the data
volume is RAID).

Also set io_min to max_sectors_kb if it is a factor of the thinp
blocksize.

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