Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1274834ybh; Thu, 16 Jul 2020 07:50:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyaLpJUGYO6NNIZzwubgmqJONjR1oy3UqP936Iemzcf4iNM07VP8MRb4taCL4/IDuBhejio X-Received: by 2002:a17:906:743:: with SMTP id z3mr4032774ejb.216.1594911003135; Thu, 16 Jul 2020 07:50:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594911003; cv=none; d=google.com; s=arc-20160816; b=nd0sfHU9boJU1GNwIj0ZmiiykYGXgmOBrXZSGtf68XXdhCA/MF9W7l8zrtCP1MaUY0 QmWSQO4TfKF3l3oH8hheoKn69fTYMsxk5VL64FEC9aKv/ijNNLOnTDUFaKFWS6Z2KQtw NMWRNX/SZAKOdgzUIK8+nf7drPI9n7rx2ToE0d36bavfEUTOfJXmx9kR9+1+AAxvhGyF nOEJN7HalwkNSvgC8gzmSeVE3g6r60M39L6yiFON2y5hCUcWC3dTkvIUG0zn9FM+UmQ7 T9gJPdiUrrvUrJeK47MlE3o7Ix2du8syEjIqLKl1geB6FkcTGNzklIfKvMDffp5Ume7K H04g== 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:date:from:dkim-signature; bh=ZK+12jCm5MTg9xTYbE2yZv4zQUftKp93X+3l7pCSao4=; b=kjiPPCdb6OBtZEY8/AIX1iQsk8+yAhklIykh8OmyQ9VOf69krJHIz/I61qEFlYufYW xjaoUmMnSp/2MgUjSbj3QeCp2RyOGN2VUgfhAUNGZXttFhW9ok/RPvmmLe5QZWpIDeZF GGq08lPk1JOk+wqfLl6WhWZ+0yXnBOe16WHX8ZtloxqitJnvB5+Mu6t1yktT0FT+ihPK dMt8f0O0ZSV1AToo3nfEkhtnv55ivhzTJboTBPGPrUqq9q5wlp7vpfYehkj2+2damD/e UhgQuT3L7XxEfKm66AjY0FIce64bcvfAwsVnAeiOO8f1/+uImzLhCeaAklrHy/TMqBER NwhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="s0u/HAsC"; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qq21si3207866ejb.570.2020.07.16.07.49.38; Thu, 16 Jul 2020 07:50:03 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b="s0u/HAsC"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728415AbgGPOrd (ORCPT + 99 others); Thu, 16 Jul 2020 10:47:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50554 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728150AbgGPOrc (ORCPT ); Thu, 16 Jul 2020 10:47:32 -0400 Received: from mail-lj1-x244.google.com (mail-lj1-x244.google.com [IPv6:2a00:1450:4864:20::244]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6023AC061755; Thu, 16 Jul 2020 07:47:32 -0700 (PDT) Received: by mail-lj1-x244.google.com with SMTP id q7so7506110ljm.1; Thu, 16 Jul 2020 07:47:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=ZK+12jCm5MTg9xTYbE2yZv4zQUftKp93X+3l7pCSao4=; b=s0u/HAsCNUtZR50BTvHEvUbFZTcNF5MMv/OtOPlBrTusN+bAJzQ6jwX8yWN292TZUJ hvy6W37KFJgsC0GfRQuFT+npoqDJajMcD1xyOnAb66OCFeioKWl7V9UoQSiue+Zg0rl9 uF9Cj0VICMZot1rrggzjhl+haD44TvEQ364maW3y3yK9kpfEv4AapC2UKYXj7Cu2ZB9R MY7c0SuMOqSXHw+SptBOs+TlgSI2rOMcYO0qctkPJMkNhG66ZbqA+qIto+uZ07Yf2c/E dYtqXhY2dr5Gv0FOvfyu4qGnv5Y6x/PdR2f4efTbkUlQcmGhgSFPioOom1xtNNEghyXB SPwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=ZK+12jCm5MTg9xTYbE2yZv4zQUftKp93X+3l7pCSao4=; b=fkfKWCBObHrEoclvDvUvlRx+hVZizavhj3+vVljVDiEg17AB3y1a0MYdUy2Eh83PJX dSTRm6PV4SmAl80owRkGJtxc2WrgdKb5n5giDhttFJQ6y6zLsPL/5+GuVxiKw9+RW7Av zQrk8GrwE9L1w2CElEg1i3lDNOuV1HQYFhbwez82LlhNVQ5QweMkJbt4gSACiAgxFbfp j2nqoPrLfqNs8yGlgKbM1M2v9nwJchzS29IWuFBATwOZApTNMT7Tn5aX8qRO0+ightng WVLhV1V/wS2++CeX00Qoh1mHBki0b1YoP0J8LxqvY1lozBdabNXQFOKMEFnq1U47r3w6 giRw== X-Gm-Message-State: AOAM530udnB8lLkDYAL1LpDuql6qDc0ftT53Fdx36wsfe96R3HGeCGle 6oBx1/vZ02HoeQVht1NNgHs= X-Received: by 2002:a2e:961a:: with SMTP id v26mr2323209ljh.467.1594910850791; Thu, 16 Jul 2020 07:47:30 -0700 (PDT) Received: from pc636 (h5ef52e31.seluork.dyn.perspektivbredband.net. [94.245.46.49]) by smtp.gmail.com with ESMTPSA id m1sm1224034lfa.22.2020.07.16.07.47.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jul 2020 07:47:30 -0700 (PDT) From: Uladzislau Rezki X-Google-Original-From: Uladzislau Rezki Date: Thu, 16 Jul 2020 16:47:28 +0200 To: Sebastian Andrzej Siewior Cc: Uladzislau Rezki , Joel Fernandes , LKML , RCU , linux-mm , "Paul E . McKenney" , Andrew Morton , "Theodore Y . Ts'o" , Matthew Wilcox , Oleksiy Avramchenko Subject: Re: [PATCH 1/1] rcu/tree: Drop the lock before entering to page allocator Message-ID: <20200716144728.GA31046@pc636> References: <20200715183537.4010-1-urezki@gmail.com> <20200715185628.7b4k3o5efp4gnbla@linutronix.de> <20200716091913.GA28595@pc636> <20200716142537.ecp4icsq7kg6qhdx@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200716142537.ecp4icsq7kg6qhdx@linutronix.de> 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 Thu, Jul 16, 2020 at 04:25:37PM +0200, Sebastian Andrzej Siewior wrote: > On 2020-07-16 11:19:13 [+0200], Uladzislau Rezki wrote: > > Sebastian, could you please confirm that if that patch that is in > > question fixes it? > > > > It would be appreciated! > > So that preempt disable should in terms any warnings. However I don't > think that it is strictly needed and from scheduling point of view you > forbid a CPU migration which might be good otherwise. > Please elaborate your point regarding "i do not think it is strictly needed". Actually i can rework the patch to remove even such preempt_enable/disable to stay on the same CPU, but i do not see the point of doing it. Do you see the point? As for scheduling point of view. Well, there are many places when there is a demand in memory or pages from atomic context. Also, getting a page is not considered as a hot path in the kfree_rcu(). > > Also if interrupts and everything is enabled then someone else might > invoke kfree_rcu() from BH context for instance. > And what? What is a problem here, please elaborate if you see any issues. -- Vlad Rezki