lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20120103101335.3f8f81bc@notabene.brown>
Date:	Tue, 3 Jan 2012 10:13:35 +1100
From:	NeilBrown <neilb@...e.de>
To:	<b29237@...escale.com>
Cc:	<linux-raid@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
	<r58472@...escale.com>
Subject: Re: [PATCH][RFC] 	RAID5/DMA/memcpy: zero copy the bio page when
 possible

On Wed, 28 Dec 2011 13:20:08 +0800 <b29237@...escale.com> wrote:

> From: Forrest shi <b29237@...escale.com>
> 
> 	use bio page directly instead of copying the bio page to stripe
> 	header page when possible.
> 
> 	Signed-off-by: Forrest Shi<b29237@...escale.com>

I'm sorry but if you want anyone to review this and comment on it you need to
give us a bit more help - like telling us what the purpose of the patch is.

There are a couple of hints but what is needed is a 'big picture'
description.  What is the problem you are fixing?  How are you fixing it?
What are the costs/benefits?

> @@ -754,10 +764,16 @@ ops_run_compute5(struct stripe_head *sh, struct raid5_percpu *percpu)
>  		__func__, (unsigned long long)sh->sector, target);
>  	BUG_ON(!test_bit(R5_Wantcompute, &tgt->flags));
>  
> -	for (i = disks; i--; )
> +	for (i = disks; i--; ) {
> +		struct r5dev *dev = &sh->dev[i];
> +		struct page *pg = dev->page;
>  		if (i != target)
> -			xor_srcs[count++] = sh->dev[i].page;
> -
> +#ifdef CONFIG_OPTIMIZE_FSL_DMA_MEMCPY
> +			if (test_bit(R5_DirectAccess, &dev->flags))
> +				pg = dev->req.bi_io_vec[0].bv_page;
> +#endif
> +			xor_srcs[count++] = pg;
> +	}
>  	atomic_inc(&sh->count);

And something is very wrong here.  I think you need { } around the body of
the 'if' statement.

NeilBrown


Download attachment "signature.asc" of type "application/pgp-signature" (829 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ