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] [thread-next>] [day] [month] [year] [list]
Date:   Mon, 7 Nov 2016 01:57:52 +0000 (GMT)
From:   James Simmons <jsimmons@...radead.org>
To:     Oleg Drokin <green@...uxhacker.ru>
cc:     Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
        devel@...verdev.osuosl.org,
        Andreas Dilger <andreas.dilger@...el.com>,
        Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
        Lustre Development List <lustre-devel@...ts.lustre.org>,
        Bobi Jam <bobijam.xu@...el.com>
Subject: Re: [PATCH 12/14] staging/lustre/llite: update ras window
 correctly


> From: Bobi Jam <bobijam.xu@...el.com>
> 
> When stride-RA hit case miss, we only reset normal sequential
> read-ahead window, but not reset the stride IO to avoid the overhead
> of re-detecting stride IO. While when the normal RA window is set
> to not insect with the stride-RA window, when we try to increase
> the stride-RA window length later, the presumption does not hold.
> 
> This patch resets the stride IO as well in this case.

Reviewed-by: James Simmons <jsimmons@...radead.org>
 
> Signed-off-by: Bobi Jam <bobijam.xu@...el.com>
> Reviewed-on: http://review.whamcloud.com/23032
> Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-8683
> Reviewed-by: wangdi <di.wang@...el.com>
> Reviewed-by: Jinshan Xiong <jinshan.xiong@...el.com>
> Signed-off-by: Oleg Drokin <green@...uxhacker.ru>
> ---
>  drivers/staging/lustre/lustre/llite/rw.c | 15 +++++++++++----
>  1 file changed, 11 insertions(+), 4 deletions(-)
> 
> diff --git a/drivers/staging/lustre/lustre/llite/rw.c b/drivers/staging/lustre/lustre/llite/rw.c
> index d2515a8..e34017d 100644
> --- a/drivers/staging/lustre/lustre/llite/rw.c
> +++ b/drivers/staging/lustre/lustre/llite/rw.c
> @@ -809,13 +809,20 @@ static void ras_update(struct ll_sb_info *sbi, struct inode *inode,
>  		if (ra_miss) {
>  			if (index_in_stride_window(ras, index) &&
>  			    stride_io_mode(ras)) {
> -				/*If stride-RA hit cache miss, the stride dector
> -				 *will not be reset to avoid the overhead of
> -				 *redetecting read-ahead mode
> -				 */
>  				if (index != ras->ras_last_readpage + 1)
>  					ras->ras_consecutive_pages = 0;
>  				ras_reset(inode, ras, index);
> +
> +				/* If stride-RA hit cache miss, the stride
> +				 * detector will not be reset to avoid the
> +				 * overhead of redetecting read-ahead mode,
> +				 * but on the condition that the stride window
> +				 * is still intersect with normal sequential
> +				 * read-ahead window.
> +				 */
> +				if (ras->ras_window_start <
> +				    ras->ras_stride_offset)
> +					ras_stride_reset(ras);
>  				RAS_CDEBUG(ras);
>  			} else {
>  				/* Reset both stride window and normal RA
> -- 
> 2.7.4
> 
> 

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ