]> git.karo-electronics.de Git - karo-tx-linux.git/commit
md: raid 10 supports TRIM
authorShaohua Li <shli@kernel.org>
Mon, 24 Sep 2012 06:41:26 +0000 (16:41 +1000)
committerNeilBrown <neilb@suse.de>
Mon, 24 Sep 2012 06:41:26 +0000 (16:41 +1000)
commitb3a0caf9c65ca00b59bb9176bbdba12d9cc7cea9
treed8928d9ac4d44821344eb108349f593c1f8c187a
parent2998ad95912fdfbf16f099fb121e265357d171e3
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