]> git.karo-electronics.de Git - karo-tx-linux.git/commit
md: raid 1 supports TRIM
authorShaohua Li <shli@fusionio.com>
Thu, 27 Sep 2012 02:37:23 +0000 (12:37 +1000)
committerNeilBrown <neilb@suse.de>
Thu, 27 Sep 2012 02:37:23 +0000 (12:37 +1000)
commita4e22df45fe3c30856478c880e3bcc4d91f7c97f
tree034c8faa6b75b4ba2db3cee830131ea903f2ed81
parentccadc53f1c706560aff099fef04e57bc5ff5c981
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