raid6/async_tx: handle holes in block list in async_syndrome_val
commitb2141e6951ad56c8f65e70547baeabd5698e390a
authorNeilBrown <neilb@suse.de>
Fri, 16 Oct 2009 05:40:34 +0000 (16 16:40 +1100)
committerNeilBrown <neilb@suse.de>
Fri, 16 Oct 2009 05:40:34 +0000 (16 16:40 +1100)
treecc0a000cb6bc1eee887a6e3de5d8073f471bf9b5
parent5dd33c9a4c29015f6d87568d33521c98931a387e
raid6/async_tx: handle holes in block list in async_syndrome_val

async_syndrome_val check the P and Q blocks used for RAID6
calculations.
With DDF raid6, some of the data blocks might be NULL, so
this needs to be handled in the same way that async_gen_syndrome
handles it.

As async_syndrome_val calls async_xor, also enhance async_xor
to detect and skip NULL blocks in the list.

Signed-off-by: NeilBrown <neilb@suse.de>
crypto/async_tx/async_pq.c
crypto/async_tx/async_xor.c