]> git.baikalelectronics.ru Git - kernel.git/commit
md: raid 10 supports TRIM
authorShaohua Li <shli@kernel.org>
Thu, 11 Oct 2012 02:30:52 +0000 (13:30 +1100)
committerNeilBrown <neilb@suse.de>
Thu, 11 Oct 2012 02:30:52 +0000 (13:30 +1100)
commitf9cfe357ba65d7a3d97032e31c0bc681f73a2d11
treec23b22940ed37804baf535eb4f79f369851b1779
parent4b36026200294eef0d932e47eb81ae30ff097b77
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