Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2033042pxb; Fri, 22 Oct 2021 12:25:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxED4Nw2o7TYVmPWJDxdarqK2xpztNwQ6QR+he0AE3bbQ6HOOjB//FndtJ4QbN7V25IIHCm X-Received: by 2002:a17:906:e85:: with SMTP id p5mr1779049ejf.159.1634930710813; Fri, 22 Oct 2021 12:25:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634930710; cv=none; d=google.com; s=arc-20160816; b=yyVFvLmO0DnxGqaAhSwt7vnC3vDNCwSPAPui+oc0Dmfybk3RZZHXUSpMN6H8k1Y65X 6EYALELwaKWzvzyyoBttM4yWVG2ztolWqu0xiA4YRpeP8oHQfpNjpqCbe0qCQMjVe3xf nyVqZ2b66ObjjOhoyPk2mzkPa7D5P4b/0bhVgV7UEJoDTXft2W1q3ZTPeUFovNvah8oZ 9Y23EWOIljeE1y9y+9fbVLIBljwluz8xc+ofdppF99OdIuiVk6+i884EMNzrJBdu7m/g E6ZJ4cvQqbpXWuKCB727zQO2R5rseVLhxp+eKTWL1QhC94XCCW5WG/w9L+Mwia4Yjfjz pw3w== 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=JcURMBS9Y8PdDJIxlTdxpTDoglZA5EDZMktU0Iw1H1o=; b=EaentJQHdaFfucuWyFOH/jN4vOBiPQZzCvHUiu81VI6QzHFOfDxFtRN36c6mBtqquV VniFEOtNjrRPbn3veJc6tMZWGiivrCktTjIIc3oOSJeIQP+JFR5s0VgYWZrs231ckwha o6H5YeI6NtlQrZpTYYnU5DhEUll/6muea5RK0HnMuBU80cq5a6QoVFjwQhbmBWixSIPQ TcNL1LId83GhObMOGFJnewSe/s4UvRNAvVdGf4pKmpTrsHAVaUDxCoazDmRJU+TUEqmi HNQio+mr3y90A2tSIhr8P+98N5G7TuQr2ZtPZDmp5Z9H2C87VNZD3Tx4bHupUuRG+1tE DfFA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s22si477578ejy.151.2021.10.22.12.24.46; Fri, 22 Oct 2021 12:25:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S234017AbhJVTZJ (ORCPT + 99 others); Fri, 22 Oct 2021 15:25:09 -0400 Received: from mail-qk1-f179.google.com ([209.85.222.179]:40583 "EHLO mail-qk1-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233969AbhJVTZI (ORCPT ); Fri, 22 Oct 2021 15:25:08 -0400 Received: by mail-qk1-f179.google.com with SMTP id x123so5613495qke.7; Fri, 22 Oct 2021 12:22:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=JcURMBS9Y8PdDJIxlTdxpTDoglZA5EDZMktU0Iw1H1o=; b=mj4whCqmXBsHARp17EBvftyVmVUakeBGJM3Zc/3H+F39FZqfWUpDBwIQjabJSyZO2b cCwA98Npsy2AKhU/rZXKuHj6Et4l2X4Kzm++4E2+6Ci5AV8r0sIFvniQudrhkCe0UuKh P7seWQBnAgm+DG2ByPvmZ1FeDkfgXcz3nNb72P3FwRq/BXyk3Skm95Bnt7vZIbZVF3Ix ZaTuQ5oF3pcr0L+S4u5Nh/KzvL8tLCli9FfX7JsEjKnGvkdnlj49SIVEcNwppuN7XTx2 8kekRCokeyMSzqbTK3LgOe8fD4Igf7dHQBZdfUFxVw+cOxkvB1adUHuorkxJR0l3dgUG wmYQ== X-Gm-Message-State: AOAM531Hzeiqvv3Ni7qHEgUItpa9cwNE+3VLhXpaaUM5NAiSH2+UXBGi emCpXYBeXfYSvWd+kWHQPYg= X-Received: by 2002:a37:a809:: with SMTP id r9mr1692706qke.50.1634930570074; Fri, 22 Oct 2021 12:22:50 -0700 (PDT) Received: from fedora (pool-173-68-57-129.nycmny.fios.verizon.net. [173.68.57.129]) by smtp.gmail.com with ESMTPSA id m6sm4557267qti.38.2021.10.22.12.22.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Oct 2021 12:22:49 -0700 (PDT) Date: Fri, 22 Oct 2021 15:22:47 -0400 From: Dennis Zhou To: Pavel Begunkov Cc: Dennis Zhou , linux-block@vger.kernel.org, Jens Axboe , linux-kernel@vger.kernel.org, linux-mm@kvack.org, Christoph Lameter , Tejun Heo Subject: Re: [PATCH v2 1/2] percpu_ref: percpu_ref_tryget_live() version holding RCU Message-ID: References: <3066500d7a6eb3e03f10adf98b87fdb3b1c49db8.1634822969.git.asml.silence@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 22, 2021 at 10:22:30AM +0100, Pavel Begunkov wrote: > On 10/21/21 15:01, Dennis Zhou wrote: > > Hello, > > > > On Thu, Oct 21, 2021 at 02:30:51PM +0100, Pavel Begunkov wrote: > > > Add percpu_ref_tryget_live_rcu(), which is a version of > > > percpu_ref_tryget_live() but the user is responsible for enclosing it in > > > a RCU read lock section. > > > > > > Signed-off-by: Pavel Begunkov > > > --- > > > include/linux/percpu-refcount.h | 33 +++++++++++++++++++++++---------- > > > 1 file changed, 23 insertions(+), 10 deletions(-) > > > > [...] > > > + > > > /** > > > * percpu_ref_tryget_live - try to increment a live percpu refcount > > > * @ref: percpu_ref to try-get > > > > Nit: it's dumb convention at this point, but do you mind copying this > > guy up. I like consistency. > > Looks Jens already took it. If you still want it moved, do you mind > it in a separate patch? > > And I'm not sure I follow where you want it to be, currently it's > right before percpu_ref_tryget_live, which uses it. Don't worry about it. I meant the @ref comment line. Honestly it's not really useful, it's just every other header block has that convention among most of percpu related files. If I have to make any changes in the future, I'll clean it up then. Thanks, Dennis > > -- > Pavel Begunkov