]> git.karo-electronics.de Git - karo-tx-linux.git/commit
md: raid 10 supports TRIM
authorShaohua Li <shli@kernel.org>
Thu, 16 Aug 2012 20:00:15 +0000 (04:00 +0800)
committerNeilBrown <neilb@suse.de>
Sat, 18 Aug 2012 00:03:23 +0000 (10:03 +1000)
commit2bdf1a513e1a7ac3f2bb01d2c5835d4321c7fd0b
tree8590e515efd0715b19b6ec1097b08b34e022e644
parent3cd986f277db5ff324fbd7c36a7aa50c06852bcf
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