sys/dev/disk/dm: Don't statically allocate MAX_STRIPES devices
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Sun, 1 Nov 2015 14:42:25 +0000 (23:42 +0900)
committerTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Sun, 1 Nov 2015 15:29:36 +0000 (00:29 +0900)
commit0d0066184da969032e8df95c13bf2c7eae7f8a3d
tree5da3fe340d8b36504f12cd9311608259d2ce3581
parent2e136f9a60b31ba53501336a89c8c7367b2b0b2f
sys/dev/disk/dm: Don't statically allocate MAX_STRIPES devices

struct target_stripe_config should have 0 sized array for
struct target_stripe_dev instead of MAX_STRIPES sized one,
and kmalloc() whatever size necessary depending on # of
stripe devices.
sys/dev/disk/dm/targets/striped/dm_target_striped.c