md: raid 10 supports TRIM
authorShaohua Li <shli@kernel.org>
Thu, 11 Oct 2012 02:30:52 +0000 (13:30 +1100)
committerNeilBrown <neilb@suse.de>
Thu, 11 Oct 2012 02:30:52 +0000 (13:30 +1100)
commit532a2a3fba8df076d65fdf17518eeb327b37a313
treec23b22940ed37804baf535eb4f79f369851b1779
parent2ff8cc2c6d4e323de71a42affeb3041fa17d5b10
md: raid 10 supports TRIM

This makes md raid 10 support TRIM.

If one disk supports discard and another not, or one has
discard_zero_data and another not, there could be inconsistent between
data from such disks. But this should not matter, discarded data is
useless. This will add extra copy in rebuild though.

Signed-off-by: Shaohua Li <shli@fusionio.com>
Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/raid10.c