aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorShaohua Li <shli@kernel.org>2012-10-10 22:49:49 -0400
committerNeilBrown <neilb@suse.de>2012-10-10 22:49:49 -0400
commit9e44476851e91c86c98eb92b9bc27fb801f89072 (patch)
treec681fe9b8261f390d60fbbcce060fe6ed958c836 /net
parent620125f2bf8ff0c4969b79653b54d7bcc9d40637 (diff)
MD: raid5 avoid unnecessary zero page for trim
We want to avoid zero discarded dev page, because it's useless for discard. But if we don't zero it, another read/write hit such page in the cache and will get inconsistent data. To avoid zero the page, we don't set R5_UPTODATE flag after construction is done. In this way, discard write request is still issued and finished, but read will not hit the page. If the stripe gets accessed soon, we need reread the stripe, but since the chance is low, the reread isn't a big deal. Signed-off-by: Shaohua Li <shli@fusionio.com> Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions