From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Snitzer Subject: Re: [PATCH 05/24] dm cache policy mq: implement writeback_work() and mq_{set, clear}_dirty() Date: Fri, 25 Oct 2013 15:18:05 -0400 Message-ID: <20131025191804.GA4804@redhat.com> References: <1382639437-27007-1-git-send-email-snitzer@redhat.com> <1382639437-27007-6-git-send-email-snitzer@redhat.com> <20131025160612.GG17070@agk-dp.fab.redhat.com> Reply-To: device-mapper development Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <20131025160612.GG17070@agk-dp.fab.redhat.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com To: dm-devel@redhat.com, Morgan Mears , Heinz Mauelshagen , Joe Thornber List-Id: dm-devel.ids On Fri, Oct 25 2013 at 12:06pm -0400, Alasdair G Kergon wrote: > On Thu, Oct 24, 2013 at 02:30:18PM -0400, Mike Snitzer wrote: > > From: Joe Thornber > > > --- a/drivers/md/dm-cache-policy-mq.c > > > - * We maintain two queues of entries. The cache proper contains > > > + * We maintain three queues of entries. The cache proper, > > Does the Documentation file need updating too? will fix. > : The multiqueue policy has two sets of 16 queues: one set for entries > : waiting for the cache and another one for those in the cache. > > > @@ -580,7 +585,16 @@ static void check_generation(struct mq_policy *mq) > > Is the comment about this function no longer accurate? > > : * At the moment the threshold is taken by averaging the hit counts of some > : * of the entries in the cache (the first 20 entries of the first level). > > - It looks at clean before dirty? yes, that is new. will fix. > - It looks at more than just the first level if it needs to? was always the case, so docs were already stale. will fix. > > +// FIXME: can __mq_set_clear_dirty block? > > Still to check this before inclusion upstream? yeah, Joe said he'd have a look.