md: raid 1 supports TRIM
authorShaohua Li <shli@fusionio.com>
Thu, 11 Oct 2012 02:28:54 +0000 (13:28 +1100)
committerNeilBrown <neilb@suse.de>
Thu, 11 Oct 2012 02:28:54 +0000 (13:28 +1100)
commit2ff8cc2c6d4e323de71a42affeb3041fa17d5b10
tree12534cc77da4d06872e29b7eb114ca2c57b97478
parentc83057a1f4f987327c49448b046d9625c612ed8e
md: raid 1 supports TRIM

This makes md raid 1 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/raid1.c