From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754770AbcHVKJm (ORCPT ); Mon, 22 Aug 2016 06:09:42 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:42748 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752585AbcHVKJk (ORCPT ); Mon, 22 Aug 2016 06:09:40 -0400 Date: Mon, 22 Aug 2016 06:04:08 -0400 From: Greg Kroah-Hartman To: Shawn Lin Cc: Oleg Drokin , Andreas Dilger , lustre-devel@lists.lustre.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] staging/lustre: avoid zero buf for the first time Message-ID: <20160822100408.GA11890@kroah.com> References: <1471855564-15962-1-git-send-email-shawn.lin@rock-chips.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1471855564-15962-1-git-send-email-shawn.lin@rock-chips.com> User-Agent: Mutt/1.7.0 (2016-08-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 22, 2016 at 04:46:04PM +0800, Shawn Lin wrote: > We only need to zero it when repeating in order to > avoid old garbage. Let's improve it by moving this > before we repeat the calculation to save some cpu > cycle. > > Signed-off-by: Shawn Lin Have you noticed a change with this in a benchmark? If not, is it really worth it? I need an ack from the lustre developers before taking patches like this... thanks, greg k-h