]> git.baikalelectronics.ru Git - kernel.git/commit
md: raid 1 supports TRIM
authorShaohua Li <shli@fusionio.com>
Thu, 11 Oct 2012 02:28:54 +0000 (13:28 +1100)
committerNeilBrown <neilb@suse.de>
Thu, 11 Oct 2012 02:28:54 +0000 (13:28 +1100)
commit3758475afab2d4fdf393e0eed187bfff85f38fb7
tree12534cc77da4d06872e29b7eb114ca2c57b97478
parent29d0fac0067c6a90ce0afe71e5a258344f0939a9
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