commit 5d51c29a9ccf12c169c13d155a22b5e683280604
Author: Dan Williams <[EMAIL PROTECTED]>
Date:   Wed Mar 19 04:40:04 2008 +0000

    async_tx: avoid the async xor_zero_sum path when src_cnt > device->max_xor
    
    commit: 8d8002f642886ae256a3c5d70fe8aff4faf3631a
    
    If the channel cannot perform the operation in one call to
    ->device_prep_dma_zero_sum, then fallback to the xor+page_is_zero path.
    This only affects users with arrays larger than 16 devices on iop13xx or
    32 devices on iop3xx.
    
    Cc: <[EMAIL PROTECTED]>
    Cc: Neil Brown <[EMAIL PROTECTED]>
    Signed-off-by: Dan Williams <[EMAIL PROTECTED]>
    [EMAIL PROTECTED]: backport to 2.6.24.3]
    Signed-off-by: Chris Wright <[EMAIL PROTECTED]>
    Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]>

diff --git a/crypto/async_tx/async_xor.c b/crypto/async_tx/async_xor.c
index 2575f67..5c579d2 100644
--- a/crypto/async_tx/async_xor.c
+++ b/crypto/async_tx/async_xor.c
@@ -264,7 +264,7 @@ async_xor_zero_sum(struct page *dest, struct page 
**src_list,
 
        BUG_ON(src_cnt <= 1);
 
-       if (tx) {
+       if (tx && src_cnt <= device->max_xor) {
                dma_addr_t dma_addr;
                enum dma_data_direction dir;
 
_______________________________________________
unionfs-cvs mailing list: http://unionfs.filesystems.org/
[email protected]
http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs-cvs

Reply via email to