From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wu Fengguang Subject: Re: [PATCH 3/3] writeback: avoid extra sync work at enqueue time Date: Thu, 5 May 2011 20:48:47 +0800 Message-ID: <20110505124847.GA5623@localhost> References: <20110502031750.135798606@intel.com> <20110502033035.789279347@intel.com> <20110504212427.GI6968@quack.suse.cz> <20110505122732.GC1294@localhost> <20110505124122.GA24009@lst.de> <20110505124237.GB24009@lst.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Jan Kara , Andrew Morton , Dave Chinner , LKML , "linux-fsdevel@vger.kernel.org" To: Christoph Hellwig Return-path: Received: from mga01.intel.com ([192.55.52.88]:10590 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753245Ab1EEMsu (ORCPT ); Thu, 5 May 2011 08:48:50 -0400 Content-Disposition: inline In-Reply-To: <20110505124237.GB24009@lst.de> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Thu, May 05, 2011 at 08:42:37PM +0800, Christoph Hellwig wrote: > On Thu, May 05, 2011 at 02:41:22PM +0200, Christoph Hellwig wrote: > > On Thu, May 05, 2011 at 08:27:32PM +0800, Wu Fengguang wrote: > > > - wbc.wb_start = jiffies; /* livelock avoidance */ > > > + oldest_jif = jiffies; > > > + wbc.older_than_this = &oldest_jif; > > > > Can't you kill the oldest_jif variable now? > > Err, -ENOCOFFEE. You could only kill it if you implement Jan's suggestion > of not making older_than_this a pointer.. Yes. And that won't be a straightforward code refactor. It will have very small side effects, so we'd better kill it in a standalone patch. Thanks, Fengguang