]> 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)
commit7b757e9e598b23261d7124b36d3512fa28c22ce5
treec23b22940ed37804baf535eb4f79f369851b1779
parent3758475afab2d4fdf393e0eed187bfff85f38fb7
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