Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3814266ybz; Mon, 4 May 2020 10:11:15 -0700 (PDT) X-Google-Smtp-Source: APiQypJg0DGwtwdse1qIL9PJpIJjz9vBrn5S2ZVZl2iyDoOHKiZySNkwVllB+dRbgRI57tbwFA4h X-Received: by 2002:aa7:c714:: with SMTP id i20mr15290650edq.230.1588612274969; Mon, 04 May 2020 10:11:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588612274; cv=none; d=google.com; s=arc-20160816; b=bD+2K3bJ4DuRKMYVYsHtbNH+9SoKcdAO6vBK2XcfPBHgSJFABykX9UkcuscuUkWEfp oOCSaJSNj1HEuFY4Qi496QGMwaQ13P4zNTDK+3E/1uHlWjGlGYz6SqcEc02JrPGeQzq0 ziE0DnDsnsY9qR9IXumYK4uIng0lK4aWrwDAZpy6V4A/1lMY5mtEpDBb+14/bSEo9hG6 8/Fl7lZXxRqSlxOK6Cs0E0oOFqpflnY46STh9gBHToEFUXZ9wBYhsAL6nSl9pDsuvxSH v2E7zPc7MD4D6NHLPzFS7JxOUSTWjmtVf0jONs+Zaezz0wxZESHChfUQMhBsPPZnOIrc EV8Q== 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:reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=jBBtm6XzM9960DsZFqg0GGTtUw6vASTcB1UHSD4oNSQ=; b=nSpGZAG7trGlsC4kAvRptCrDasKTwuKR9rJ8tJdCzDavJhVwGyWQSEpQ3ySLDuIhwA XBXSorSAud598QLnOQFTbyM4DDmg2bfsnNXhe+7Tr5NpfRaSdTPp1Gjt3X2Zj3r9FmTx d40+IHUdD6XO26KYNVsnKwzLSBDHIZgzxCc96/RghEiLLUVMuATZXsi/wJBkZTgOn9jP B+0UVgijGhR7/TWKQ/yWJRQAoc5MjpRxPXhIToRheVztncyh3/QO9yutEzMmeL8twQ38 aZkn55BeVi7+NgQNlRbqYBxrwykQWUiHBZljl9W1YDrTNmelRyrZzpJBgeHq1TH8P3Ea 9qow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=RKfXMVsY; 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 o20si7237028edr.279.2020.05.04.10.10.50; Mon, 04 May 2020 10:11:14 -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=@kernel.org header.s=default header.b=RKfXMVsY; 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 S1730070AbgEDRIi (ORCPT + 99 others); Mon, 4 May 2020 13:08:38 -0400 Received: from mail.kernel.org ([198.145.29.99]:41996 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730050AbgEDRId (ORCPT ); Mon, 4 May 2020 13:08:33 -0400 Received: from paulmck-ThinkPad-P72.home (50-39-105-78.bvtn.or.frontiernet.net [50.39.105.78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5E098206A5; Mon, 4 May 2020 17:08:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1588612113; bh=ypOPsyYM0K55BJG1G3egFRLHvuXBDVqQU1VVRfu/SmI=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=RKfXMVsYI9cCeE5MKGX2AOl3oY35VW2WB/58+/IOr+d/JQXue/IaiKgqmCgOJGm4B i+jF5WKXBlxuVVX6hEYowk7XZ289PQhVgg+ULfZQmrw2XXU2ASjIWgXOdSP+cQ/3F9 SVOSM/N5viQjLNYhnu2DJrfCMGi/kotafxgWEzDQ= Received: by paulmck-ThinkPad-P72.home (Postfix, from userid 1000) id 3AA7835226F4; Mon, 4 May 2020 10:08:33 -0700 (PDT) Date: Mon, 4 May 2020 10:08:33 -0700 From: "Paul E. McKenney" To: Uladzislau Rezki Cc: Joel Fernandes , LKML , linux-mm@kvack.org, Andrew Morton , "Theodore Y . Ts'o" , Matthew Wilcox , RCU , Oleksiy Avramchenko Subject: Re: [PATCH 19/24] rcu/tree: Support reclaim for head-less object Message-ID: <20200504170833.GQ2869@paulmck-ThinkPad-P72> Reply-To: paulmck@kernel.org References: <20200428205903.61704-1-urezki@gmail.com> <20200428205903.61704-20-urezki@gmail.com> <20200501223909.GF7560@paulmck-ThinkPad-P72> <20200504001258.GD197097@google.com> <20200504002855.GF2869@paulmck-ThinkPad-P72> <20200504003237.GD212435@google.com> <20200504142153.GG17577@pc636> <20200504153147.GL2869@paulmck-ThinkPad-P72> <20200504165629.GA20257@pc636> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200504165629.GA20257@pc636> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 04, 2020 at 06:56:29PM +0200, Uladzislau Rezki wrote: > > > > > > For single argument we can drop the lock before the entry to the page > > > allocator. Because it follows might_sleep() anotation we avoid of having > > > a situation when spinlock(rt mutex) is taken from any atomic context. > > > > > > Since the lock is dropped the current context can be interrupted by > > > an IRQ which in its turn can also call kvfree_rcu() on current CPU. > > > In that case it must be double argument(single is not allowed) kvfree_rcu() > > > call. For PREEMPT_RT if no cache everything is reverted to rcu_head usage, > > > i.e. the entry to page allocator is bypassed. > > > > > > It can be addressed as a separate patch and send out later on if we > > > are on the same page. > > > > > > Paul, Joel what are your opinions? > > > > I strongly prefer that it be removed from the series. I do understand > > that this is a bit more hassle right now, but this does help avoid > > confusion in the future, plus perhaps also avoiding issues with future > > bisections. > > > We have already decided to get rid of it, i mean small allocations(dynamic > rcu_head attaching). I will exclude it from next patch-set version. Very good, and thank you!!! Thanx, Paul