Re: [dm-devel] [PATCH v3 4/6] block: allow 'chunk_sectors' to be non-power-of-2

2020-09-22 Thread Martin K. Petersen
Mike, > It is possible, albeit more unlikely, for a block device to have a non > power-of-2 for chunk_sectors (e.g. 10+2 RAID6 with 128K chunk_sectors, > which results in a full-stripe size of 1280K. This causes the RAID6's > io_opt to be advertised as 1280K, and a stacked device _could_ then be

[dm-devel] [PATCH v3 4/6] block: allow 'chunk_sectors' to be non-power-of-2

2020-09-21 Thread Mike Snitzer
It is possible, albeit more unlikely, for a block device to have a non power-of-2 for chunk_sectors (e.g. 10+2 RAID6 with 128K chunk_sectors, which results in a full-stripe size of 1280K. This causes the RAID6's io_opt to be advertised as 1280K, and a stacked device _could_ then be made to use a bl