From: Mike Snitzer Date: Fri, 27 Jul 2012 14:08:00 +0000 (+0100) Subject: dm: support non power of two target max_io_len X-Git-Tag: v3.6-rc1~56^2~51 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=542f90381422676544382d4071ba44a2de90a0c1;p=pandora-kernel.git dm: support non power of two target max_io_len Remove the restriction that limits a target's specified maximum incoming I/O size to be a power of 2. Rename this setting from 'split_io' to the less-ambiguous 'max_io_len'. Change it from sector_t to uint32_t, which is plenty big enough, and introduce a wrapper function dm_set_target_max_io_len() to set it. Use sector_div() to process it now that it is not necessarily a power of 2. Signed-off-by: Mike Snitzer Signed-off-by: Alasdair G Kergon --- Reading git-diff-tree failed