]> git.karo-electronics.de Git - karo-tx-linux.git/commit
md: raid 10 supports TRIM
authorShaohua Li <shli@kernel.org>
Thu, 27 Sep 2012 02:37:24 +0000 (12:37 +1000)
committerNeilBrown <neilb@suse.de>
Thu, 27 Sep 2012 02:37:24 +0000 (12:37 +1000)
commit65bb7cd6409380de98d2b09071f351cbd2aaa4c2
treec4a708cf9ac1d39d9df50b6fd6f136cee8397175
parenta4e22df45fe3c30856478c880e3bcc4d91f7c97f
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