Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3775118ybl; Mon, 12 Aug 2019 06:14:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqxTrXv9pKxojBHDALFT4Ik+c8/Y3qbeXdmmWYchN3m6n3dS7Ckc2Y6ROhZpCsLB/Qs9VVVq X-Received: by 2002:a17:902:8d91:: with SMTP id v17mr15015543plo.88.1565615681659; Mon, 12 Aug 2019 06:14:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565615681; cv=none; d=google.com; s=arc-20160816; b=YXNy43FH9Lv+wcrJbGuNH/M02CGwKX7ZnEAQ8gyhXMn0cWmyGBDgbPWmemtT8TYmpM Azwi5A9gptqaHD79+4gYZAj05+Hg+5NkH+yKcBHTH3zF84Kq89TbtMkjp8xvwJPaKq+0 vqqODzzP4mg/XHm7v8NtVLeLPatifJXDNNh/mQpwCk8YAnV32rjH1HpVUrszqZTRgn2c Eikhdpv6Lio7LjEVsp3b6ee9XToUbLc+pnT4tiLy1HLxCxMbFoporIZg7DQRWhlavRU1 RjCigpx1vaa3stOgkgGkw0dSlvaYqwbxyqoPZzn3Oe6KHcWbJnY5pIsljII2tTOdLvvz KuhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=gZSffQw3OgyBMCQLYW8xDq5QOYfXWIqDSRNv2nk7GfU=; b=CirooJx9LvWrSM92xqsMlncZWuAeeQtx6Ia7p5Hiza7G1mXX4mC2Oymb1dSGcoPBWh Mmn+s0bTj8VZM8qBZPX04uQY6zW2Ee5VCvdrkzNSx52hTjzja6C6cKGJGlf72+F+Fo/J UfAJu6IkmV1tFzjx24MTkFXgve7XF2ntyo8jqshjLfxavT64BieaVmKodrsZWp6I1/uc VVMLctLH7ywTEoItZkb/3Lc6KRdxTlnA7qKrkp4EOjXDBYwS8yADetMTz2oU+X57P4VM 4+M8bs+U1SZsrws61I7QpE3DIMM4N13rqxETdxlonFJSDxjUY7Od8emYhkvkWGq7gEQb 2LDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b="ek/YpqOY"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l2si12074214pjw.0.2019.08.12.06.14.26; Mon, 12 Aug 2019 06:14:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b="ek/YpqOY"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728802AbfHLNMh (ORCPT + 99 others); Mon, 12 Aug 2019 09:12:37 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:42640 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726492AbfHLNMh (ORCPT ); Mon, 12 Aug 2019 09:12:37 -0400 Received: by mail-pf1-f196.google.com with SMTP id i30so962217pfk.9 for ; Mon, 12 Aug 2019 06:12:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joelfernandes.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=gZSffQw3OgyBMCQLYW8xDq5QOYfXWIqDSRNv2nk7GfU=; b=ek/YpqOY0WfmZwQaIvRr2fO13Osf/wvmApdCKlxNVykMRGuuRJ4Cqa4jzTxjUTljBc 8upRaRvO6GHin7ENipsnd7Tc49lXBcg/MJRTtnDTyVv8lmI2wQC2udk3QW/Fb/Nm0/HH XSO2eX8O3iHPdg2GZ7HiH+bAPRXlDN1a2Shi8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=gZSffQw3OgyBMCQLYW8xDq5QOYfXWIqDSRNv2nk7GfU=; b=Bt79SyVIGmibnbUWleN1qIdAJSnpaRiw6KezgUt7xX74rQqpW8u0TD4LIO94LHBgTD jhSCc0lHVSkUFmmz8JDjs5ERd1aKapzFa/Yo8vepR7TmBEhn2RvGyIPd9CwLQYOo8jdQ iDU9C3Agyqqri0vesIS6+hikrEBiydoLDUVHdWGJUut3A28NQcrBW7J8HF3B4WR4dFdH 5TcGeOSY+uCj7vaxp6B3I/ql0HtRmZdsiHOoLWiZwUSIPhqRsgVBNmb8AyXKaazYiNkZ JYzpWw6i7J22fccnRAXwm24kt8D0O5VypQ8c3YmcEf70y3H0wVO6IuVZDRV/aVdHBFNa KCEQ== X-Gm-Message-State: APjAAAUmvS1ksvbztPu7DGsowwLOTMvKfG3Uh68edlf7ct6Xtl+rqUxh BS55xlQemehzoBLqwu6814VwQ+JYmnY= X-Received: by 2002:a62:1858:: with SMTP id 85mr11758185pfy.120.1565615556767; Mon, 12 Aug 2019 06:12:36 -0700 (PDT) Received: from localhost ([2620:15c:6:12:9c46:e0da:efbf:69cc]) by smtp.gmail.com with ESMTPSA id k64sm83531977pge.65.2019.08.12.06.12.35 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 12 Aug 2019 06:12:35 -0700 (PDT) Date: Mon, 12 Aug 2019 09:12:34 -0400 From: Joel Fernandes To: Byungchul Park Cc: "Paul E. McKenney" , Byungchul Park , LKML , Rao Shoaib , kernel-team@android.com, kernel-team , Davidlohr Bueso , Josh Triplett , Lai Jiangshan , Mathieu Desnoyers , rcu , Steven Rostedt Subject: Re: [PATCH RFC v1 1/2] rcu/tree: Add basic support for kfree_rcu batching Message-ID: <20190812131234.GC27552@google.com> References: <20190807094504.GB169551@google.com> <20190807175215.GE28441@linux.ibm.com> <20190808095232.GA30401@X58A-UD3R> <20190808125607.GB261256@google.com> <20190808180916.GP28441@linux.ibm.com> <20190811083626.GA9486@X58A-UD3R> <20190811084950.GB9486@X58A-UD3R> <20190811234939.GC28441@linux.ibm.com> <20190812101052.GA10478@X58A-UD3R> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190812101052.GA10478@X58A-UD3R> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 12, 2019 at 07:10:52PM +0900, Byungchul Park wrote: > On Sun, Aug 11, 2019 at 04:49:39PM -0700, Paul E. McKenney wrote: > > Maybe. Note well that I said "potential issue". When I checked a few > > years ago, none of the uses of rcu_barrier() cared about kfree_rcu(). > > They cared instead about call_rcu() callbacks that accessed code or data > > that was going to disappear soon, for example, due to module unload or > > filesystem unmount. > > > > So it -might- be that rcu_barrier() can stay as it is, but with changes > > as needed to documentation. Right, we should update the docs. Byungchul, do you mind sending a patch that documents the rcu_barrier() behavior? > > It also -might- be, maybe now or maybe some time in the future, that > > there will need to be a kfree_rcu_barrier() or some such. But if so, > > let's not create it until it is needed. For one thing, it is reasonably > > likely that something other than a kfree_rcu_barrier() would really > > be what was needed. After all, the main point would be to make sure > > that the old memory really was freed before allocating new memory. > > Now I fully understand what you meant thanks to you. Thank you for > explaining it in detail. > > > But if the system had ample memory, why wait? In that case you don't > > really need to wait for all the old memory to be freed, but rather for > > sufficient memory to be available for allocation. > > Agree. Totally make sense. Agreed, all makes sense. thanks, - Joel [snip]