Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp430665rwo; Fri, 21 Jul 2023 14:25:07 -0700 (PDT) X-Google-Smtp-Source: APBJJlH1+ChCctCE8NJWa482lUgMEBsOeulcvz00hbbMmK1oluSs3/wo1RNWQXA41rZb5yGXO5JZ X-Received: by 2002:a50:ee97:0:b0:51e:1c5c:b97f with SMTP id f23-20020a50ee97000000b0051e1c5cb97fmr3512081edr.2.1689974707460; Fri, 21 Jul 2023 14:25:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689974707; cv=none; d=google.com; s=arc-20160816; b=ygHXHg8HakclDenY/i2BVS52i0agoWFyYA1H37Zcq/OKa8VjBAKbJ4EKX6fLb8qpMk 8LVeH2EZhvHNZzs1vy1Y3t49eSrHvu9U5mSGK+w+6wCp/X8O4K+CfubvkExQocgpWqlO EIReUJEBoE60pan0DnL3KBswtNcgSqxL8TZaMRFRmNTcoN56Z84Nq5IId2NlvnAuBFH0 5xM5c9xQ88g4kIRp/fAhjiNLopW3sYDQDwVSnT9XNSQhxsE1t2YiQpACH/EXurstYps1 TIS9cB77n3iXiVevGtfPQn/tpFMABfCb+NE6aGLkCYTZy4BIFaYVHLoby92t7PiJEyoj W4ew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=2TWvFaC6AvxQczFQknimLznH6e8RL+Evefj60YX6+Do=; fh=YmJ1iUMfRSyWkFG++qcA8D6FYjlnldA+ddrk6xZRPQo=; b=Uad00jWPSGzESO5Vz3bRxKmLx+hXDktSRklRhdrcFt2ZxpXjuXZzzYP9hh/pVcoZVu rYXCRKevCW94KDCh5LtlZ4casBj2GeOh23+qWsa+hcmOs03W8Y+woLH6zH34cWB/i0OR 6UWIAQShwsolF0s0RMHHjiQmpR5+ojm492oi/vIBJuqfAHoKfVOKuMulFDq6fvvuuhe9 4jxcz1Lo/+By6iWkzMz+a+RRtLOSZJUlPC1UWsnz0JIVaEnfeNOyLI11VKGrKzcir73A Hj8s583jj08QlLgjHdvXsT6WDzXWSAbovjH9iYQ4BkAm+dAgsooj/MAsioeWUafjqg2B dwdA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d25-20020aa7c1d9000000b0051e1616f27esi2771733edp.20.2023.07.21.14.24.43; Fri, 21 Jul 2023 14:25:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230498AbjGUVEr (ORCPT + 99 others); Fri, 21 Jul 2023 17:04:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33676 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229902AbjGUVEp (ORCPT ); Fri, 21 Jul 2023 17:04:45 -0400 Received: from mail-il1-f179.google.com (mail-il1-f179.google.com [209.85.166.179]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A64141FD2 for ; Fri, 21 Jul 2023 14:04:44 -0700 (PDT) Received: by mail-il1-f179.google.com with SMTP id e9e14a558f8ab-34896a1574dso11957575ab.0 for ; Fri, 21 Jul 2023 14:04:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689973484; x=1690578284; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=2TWvFaC6AvxQczFQknimLznH6e8RL+Evefj60YX6+Do=; b=CpdNL6wyKAAXvV6iE2nP64cVgurRfmYGDPoFed2uZi24Le1tudjFCKZowuusK1Ga0R z9RBX4wHE4Odvic2duusAfUMogZWJB4ixH18Np1AOqvVFjXqcs2rTVBntXWDcXmOB0n4 1xkDm+YMWw7fbkIFngKtApCe1pWZPDD0vg/3Ra70TfVpLGa9rrpVchYtBU6ng1R9ArYe TG7CHNDgR26fmr3K5dJABipcZC3YeoNGISqyi16Jh9PPgXTSpTa1DediOKIZVXaZOAXG 4mm1jB9N52ftt1hWEjBZoC8wMVSAfZRuxiuOkn3h4J/5NvaK/QjDILv27R6jq4oMM5Oe qZnA== X-Gm-Message-State: ABy/qLZ6x0bdMkL/4aGCU11l18i0H54cOBVBUVaUa7X/e0/6C8KlMPoX 4/PonqRN4eNxQ6F2p+1NPF8= X-Received: by 2002:a5e:c110:0:b0:787:17d6:fbc7 with SMTP id v16-20020a5ec110000000b0078717d6fbc7mr979927iol.13.1689973483785; Fri, 21 Jul 2023 14:04:43 -0700 (PDT) Received: from snowbird ([2601:282:1800:1f50::d356]) by smtp.gmail.com with ESMTPSA id q7-20020a5d8347000000b00785d794ec4esm1338952ior.23.2023.07.21.14.04.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Jul 2023 14:04:43 -0700 (PDT) Date: Fri, 21 Jul 2023 14:04:38 -0700 From: Dennis Zhou To: Baoquan He Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, akpm@linux-foundation.org, tj@kernel.org, cl@linux.com, mawupeng1@huawei.com Subject: Re: [PATCH 0/3] percpu: some trivial cleanup patches Message-ID: References: <20230721131800.20003-1-bhe@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230721131800.20003-1-bhe@redhat.com> X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, On Fri, Jul 21, 2023 at 09:17:57PM +0800, Baoquan He wrote: > There's a left issue in my mailbox about percpu code at below. When > I rechecked it and considered Dennis's comment, I made an attmept > to fix it with patch 3. > > https://lore.kernel.org/all/Y407wDMKq5ibE9sc@fedora/T/#u > > Patch 1 and 2 are trivial clean up patches when reading percpu code. > > Baoquan He (3): > mm/percpu.c: remove redundant check > mm/percpu.c: optimize the code in pcpu_setup_first_chunk() a little > bit > mm/percpu.c: print error message too if atomic alloc failed > > mm/percpu.c | 39 +++++++++++++++++---------------------- > 1 file changed, 17 insertions(+), 22 deletions(-) > > -- > 2.34.1 > Thanks for these. I left a few comments. I think I might have some stuff for v6.6, I'll figure that out in a couple days. If that's so, I can pull 1, probably massage 2 and send that out again, and then I think you'll need to resend 3. Thanks, Dennis