From: Dan Williams Date: Fri, 27 Jun 2008 22:31:50 +0000 (+1000) Subject: md: kill STRIPE_OP_MOD_DMA in raid5 offload X-Git-Tag: v2.6.27-rc1~957^2~39 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b203886edbcaac3ca427cf4dbcb50b18bdb346fd;p=pandora-kernel.git md: kill STRIPE_OP_MOD_DMA in raid5 offload From: Dan Williams This micro-optimization allowed the raid code to skip a re-read of the parity block after checking parity. It took advantage of the fact that xor-offload-engines have their own internal result buffer and can check parity without writing to memory. Remove it for the following reasons: 1/ It is a layering violation for MD to need to manage the DMA and non-DMA paths within async_xor_zero_sum 2/ Bad precedent to toggle the 'ops' flags outside the lock 3/ Hard to realize a performance gain as reads will not need an updated parity block and writes will dirty it anyways. Signed-off-by: Dan Williams Signed-off-by: Neil Brown --- Reading git-diff-tree failed