raid5-ppl: partial parity calculation optimization
authorArtur Paszkiewicz <artur.paszkiewicz@intel.com>
Tue, 4 Apr 2017 11:13:58 +0000 (13:13 +0200)
committerShaohua Li <shli@fb.com>
Mon, 10 Apr 2017 19:01:37 +0000 (12:01 -0700)
commitae1713e296449caf820635d384a99936ce281a71
tree24e93bffe6c6cb527f282655ce4a447209629c6d
parent845b9e229fe0716ab6b4d94b4364c99069667b59
raid5-ppl: partial parity calculation optimization

In case of read-modify-write, partial partity is the same as the result
of ops_run_prexor5(), so we can just copy sh->dev[pd_idx].page into
sh->ppl_page instead of calculating it again.

Signed-off-by: Artur Paszkiewicz <artur.paszkiewicz@intel.com>
Signed-off-by: Shaohua Li <shli@fb.com>
drivers/md/raid5-ppl.c
drivers/md/raid5.c