Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753913AbbGWB43 (ORCPT ); Wed, 22 Jul 2015 21:56:29 -0400 Received: from mx1.redhat.com ([209.132.183.28]:54338 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752589AbbGWB42 (ORCPT ); Wed, 22 Jul 2015 21:56:28 -0400 Date: Thu, 23 Jul 2015 09:56:22 +0800 From: Baoquan He To: Tejun Heo Cc: cl@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/3] perpuc: check pcpu_first_chunk and pcpu_reserved_chunk to avoid handling them twice Message-ID: <20150723015622.GA8369@dhcp-17-102.nay.redhat.com> References: <1437404130-5188-1-git-send-email-bhe@redhat.com> <1437404130-5188-2-git-send-email-bhe@redhat.com> <20150721152840.GG15934@mtj.duckdns.org> <20150722000357.GA1834@dhcp-17-102.nay.redhat.com> <20150722135237.GJ15934@mtj.duckdns.org> <20150722142900.GA1737@dhcp-17-102.nay.redhat.com> <20150722143729.GM15934@mtj.duckdns.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150722143729.GM15934@mtj.duckdns.org> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 846 Lines: 22 On 07/22/15 at 10:37am, Tejun Heo wrote: > On Wed, Jul 22, 2015 at 10:29:00PM +0800, Baoquan He wrote: > > > > So if no reserved_size dyn_size is assigned to zero, and is checked to > > > > see if dchunk need be created in below code: > > > > > > Hmmm... but then pcpu_reserved_chunk is NULL so there still is no > > > duplicate on the list, no? > > > > Yes, you are quite right. I was mistaken. So NACK this patch. > > But, yeah, it'd be great if we can add a WARN_ON() to ensure that this > really doesn't happen along with some comments. Posted [patch v3 2/3] as you suggested. Thanks a lot! -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/