Received: by 2002:ab2:69cc:0:b0:1fd:c486:4f03 with SMTP id n12csp213471lqp; Tue, 11 Jun 2024 02:05:55 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXoGuQ298BQGcQz5rp9Gve5uILEGncEPR8cDpvpzpWlr/6opkZkD9MrH3ag1E6wcoYPzTTd7TsZMoCTZY0vX9M7/WG8gd2GRPGhwxhulw== X-Google-Smtp-Source: AGHT+IHt+WEcPnD0N8VQgsxO3eAg/rAt6oZ7hrH7agNxgS5IlErKsKHD/Rxf7aMZY+nYg21IzUYU X-Received: by 2002:a05:622a:11c9:b0:441:538d:e394 with SMTP id d75a77b69052e-441538dfd09mr7126471cf.63.1718096754883; Tue, 11 Jun 2024 02:05:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718096754; cv=pass; d=google.com; s=arc-20160816; b=cgPctT73Op4etrRRN1HZVkd0Lk6gKtbaK+A/DWRRqbyYKoSedAMM2lUmzXivSsuFxt 4S/WfF4My+7KYiMSmj+c8HTwNwnSvKG8F/I0s15pIwpW0TnMtgfPX4dBIiGlBOHKn4WH 9EyEGW86L88706VbTGD2LX9MEwjo/EQo1xeP/lUSqgTvp+BDczAHQOYaUdTHA3tKAYGS w4JC1omTo9jHM68QS2mr47t+XsyUrxyZB4uox+YPkb0njlGVFa9Jqn+10LWbuOLYO+nU LK7mHBg1zlLDuaKM/O1IuSLqTDYpjRpc95IgPlpFdz4BuB89PaMfs3qgtOKFy2GOGUQK GThg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :from:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=ZYiV+o9zSIIWC0OgvJkjL9fcIjrSZKa6eSjmis7oq24=; fh=4Yh2pCvlE1lt+E9a776s5EDgYGXTZaOgSjAIRYG4hWg=; b=COtxSC81mAMC77KU2cKBoCYBb0ZV5OePBmozp+vcEVi/11Rt84ueEv4QIqa1DYoQqy fM8QXxJzB8jNo/sYi/8WpWNvha9eythWq2hf/zKAi6Klb2a29XobaYSTuO30K5lDGycI N4CDhH7XOKwq8xNVkTmvdjfgct7GXXxkfNSsM94n5Po+9hoHZI8mUKP1RqtWRkCwihop KE0qOS99zLhZ19Fuh/DbBZQEFQiBPUpV1alnYmsSq8BjCCGV3YIwtvY5u0I2WT3w6lEy wBN4vNjqK4rVojkAbNpOgLSAkKFE02r10yxDniRFh2yP4cpKfAcRmBOzLIx7A82SD/pW Wpyg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@leemhuis.info header.s=he214686 header.b=EA5Ij96f; arc=pass (i=1 spf=pass spfdomain=leemhuis.info dkim=pass dkdomain=leemhuis.info); spf=pass (google.com: domain of linux-kernel+bounces-209539-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-209539-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d75a77b69052e-44038b83544si127124061cf.766.2024.06.11.02.05.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 02:05:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-209539-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@leemhuis.info header.s=he214686 header.b=EA5Ij96f; arc=pass (i=1 spf=pass spfdomain=leemhuis.info dkim=pass dkdomain=leemhuis.info); spf=pass (google.com: domain of linux-kernel+bounces-209539-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-209539-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 8A6F51C21750 for ; Tue, 11 Jun 2024 09:05:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CEA6717622E; Tue, 11 Jun 2024 09:05:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=leemhuis.info header.i=@leemhuis.info header.b="EA5Ij96f" Received: from wp530.webpack.hosteurope.de (wp530.webpack.hosteurope.de [80.237.130.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C010A79C8; Tue, 11 Jun 2024 09:05:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=80.237.130.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718096743; cv=none; b=rq52NQbBzFK5X/C4m7M6KfSC3f5A6cKR6Nx5JXlWcTnZR+CbgQ1eGVNbvllkMzGD1Pjiu/G7pkGnNgqaHZIn+TsyaYkpRK8UDK2G4G6nf+Cm+9ASxPanAr4JmqJ6VudKuyb7Y6xeuzyF6VarqgsiJpQUlxtGtKbLBAZDsM6wtsU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718096743; c=relaxed/simple; bh=28AoFK179RleAe37+vqCxMapLMFcf/7yYDPj5dgjioI=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=q5yubPCza1NsLfNc8YsGuLXnVQ0+T8mc009Vx7Y0fsmdY/RSkkGOho7/Xy4opwAbErmHTHq3PQgj2/5JKB47QokpIMeHQSQA3XP+Kr7jVPPgID3mJa8sKsmCWw30ogIOts+GrblwxR7M9I6hUTMOM9RNxtbE35eK+XgOT4Bzplo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=leemhuis.info; spf=pass smtp.mailfrom=leemhuis.info; dkim=pass (2048-bit key) header.d=leemhuis.info header.i=@leemhuis.info header.b=EA5Ij96f; arc=none smtp.client-ip=80.237.130.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=leemhuis.info Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=leemhuis.info DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=leemhuis.info; s=he214686; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date:Message-ID:From: Sender:Reply-To:Subject:Date:Message-ID:To:Cc:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:In-Reply-To: References; bh=ZYiV+o9zSIIWC0OgvJkjL9fcIjrSZKa6eSjmis7oq24=; t=1718096741; x=1718528741; b=EA5Ij96fQh1ZQePbIJBzChkz2meSDoB7jdFatxBevmhjbi9Ij0FiJ6kuK/oeC 9MNNPzqbd152hcynF7dy7NEzv70HbEq/mCqUSyGLwzzfcpxDhNXcWNIgDcXz8H5gvY1vwh5NW/w3K fE7jn8je5Hoy2T0KrXLDHEHCfrIEVTEEK5zixJDsFMGcc/JFR7bna+IrkVisyKKhg/s0NLCRgtLGj q1TRxUXB0OaIVzqi6slvqgkGX1biOteU6EYqYkwcBmrYA/GF+wJA5o3RLNaRorvRWz4wrZnz+u+aj PpwXuV6nFuen1PlOCYHghY0mB9jSbN4VeAOqMuWjP6xzu/TIig==; Received: from [2a02:8108:8980:2478:8cde:aa2c:f324:937e]; authenticated by wp530.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) id 1sGxRb-0007R9-Ju; Tue, 11 Jun 2024 11:05:31 +0200 Message-ID: Date: Tue, 11 Jun 2024 11:05:25 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 05/14] tracefs: replace call_rcu by kfree_rcu for simple kmem_cache_free callback To: Vlastimil Babka , Greg KH Cc: Steven Rostedt , "Paul E. McKenney" , Julia Lawall , kernel-janitors@vger.kernel.org, Masami Hiramatsu , Mathieu Desnoyers , linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, "workflows@vger.kernel.org" References: <20240609082726.32742-1-Julia.Lawall@inria.fr> <20240609082726.32742-6-Julia.Lawall@inria.fr> <20240610112223.151faf65@rorschach.local.home> <20240610163606.069d552a@gandalf.local.home> <70c093a5-df9c-4665-b9c9-90345c7f2139@suse.cz> <2024061143-transfer-jalapeno-afa0@gregkh> <05ec743a-c4e9-4c66-b2cd-4e89c858d7d4@suse.cz> From: Thorsten Leemhuis Content-Language: en-US, de-DE Autocrypt: addr=linux@leemhuis.info; keydata= xsFNBFJ4AQ0BEADCz16x4kl/YGBegAsYXJMjFRi3QOr2YMmcNuu1fdsi3XnM+xMRaukWby47 JcsZYLDKRHTQ/Lalw9L1HI3NRwK+9ayjg31wFdekgsuPbu4x5RGDIfyNpd378Upa8SUmvHik apCnzsxPTEE4Z2KUxBIwTvg+snEjgZ03EIQEi5cKmnlaUynNqv3xaGstx5jMCEnR2X54rH8j QPvo2l5/79Po58f6DhxV2RrOrOjQIQcPZ6kUqwLi6EQOi92NS9Uy6jbZcrMqPIRqJZ/tTKIR OLWsEjNrc3PMcve+NmORiEgLFclN8kHbPl1tLo4M5jN9xmsa0OZv3M0katqW8kC1hzR7mhz+ Rv4MgnbkPDDO086HjQBlS6Zzo49fQB2JErs5nZ0mwkqlETu6emhxneAMcc67+ZtTeUj54K2y Iu8kk6ghaUAfgMqkdIzeSfhO8eURMhv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vobqYmvLTCTcbxFS4JNuT+ZyV+xR5JiV+2g2HwhxWW uC88BtriqL4atyvtuybQT+56IiiU2gszQ+oxR/1Aq+VZHdUeC6lijFiQblqV6EjenJu+pR9A 7EElGPPmYdO1WQbBrmuOrFuO6wQrbo0TbUiaxYWyoM9cA7v7eFyaxgwXBSWKbo/bcAAViqLW ysaCIZqWxrlhHWWmJMvowVMkB92uPVkxs5IMhSxHS4c2PfZ6D5kvrs3URvIc6zyOrgIaHNzR 8AF4PXWPAuZu1oaG/XKwzMqN/Y/AoxWrCFZNHE27E1RrMhDgmyzIzWQTffJsVPDMQqDfLBhV ic3b8Yec+Kn+ExIF5IuLfHkUgIUs83kDGGbV+wM8NtlGmCXmatyavUwNCXMsuI24HPl7gV2h n7RI In-Reply-To: <05ec743a-c4e9-4c66-b2cd-4e89c858d7d4@suse.cz> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-bounce-key: webpack.hosteurope.de;linux@leemhuis.info;1718096741;c2657896; X-HE-SMSGID: 1sGxRb-0007R9-Ju On 11.06.24 10:42, Vlastimil Babka wrote: > On 6/11/24 8:23 AM, Greg KH wrote: >> On Mon, Jun 10, 2024 at 11:40:54PM +0200, Vlastimil Babka wrote: >>> On 6/10/24 10:36 PM, Steven Rostedt wrote: >>>> On Mon, 10 Jun 2024 08:46:42 -0700 >>>> "Paul E. McKenney" wrote: >>>> >>>>>>> index 7c29f4afc23d..338c52168e61 100644 >>>>>>> --- a/fs/tracefs/inode.c >>>>>>> +++ b/fs/tracefs/inode.c >>>>>>> @@ -53,14 +53,6 @@ static struct inode *tracefs_alloc_inode(struct super_block *sb) >>>>>>> return &ti->vfs_inode; >>>>>>> } >>>>>>> >>>>>>> -static void tracefs_free_inode_rcu(struct rcu_head *rcu) >>>>>>> -{ >>>>>>> - struct tracefs_inode *ti; >>>>>>> - >>>>>>> - ti = container_of(rcu, struct tracefs_inode, rcu); >>>>>>> - kmem_cache_free(tracefs_inode_cachep, ti); >>>>>> >>>>>> Does this work? >>>>>> >>>>>> tracefs needs to be freed via the tracefs_inode_cachep. Does >>>>>> kfree_rcu() handle specific frees for objects that were not allocated >>>>>> via kmalloc()? >>>>> >>>>> A recent change to kfree() allows it to correctly handle memory allocated >>>>> via kmem_cache_alloc(). News to me as of a few weeks ago. ;-) >>>> >>>> If that's the case then: >>>> >>>> Acked-by: Steven Rostedt (Google) >>>> >>>> Do we have a way to add a "Depends-on" tag so that anyone backporting this >>>> will know that it requires the change to whatever allowed that to happen? >>> >>> Looks like people use that tag, although no grep hits in Documentation, so >>> Cc'ing workflows@ and Thorsten. >>> >>> In this case it would be >>> >>> Depends-on: c9929f0e344a ("mm/slob: remove CONFIG_SLOB") >> >> Ick, no, use the documented way of handling this as described in the >> stable kernel rules file. > > AFAICS that documented way is for a different situation? I assume you mean > this part: > > * Specify any additional patch prerequisites for cherry picking:: > > Cc: # 3.3.x: a1f84a3: sched: Check for idle > > But that would assume we actively want to backport this cleanup patch in the > first place. But as I understand Steven's intention, we want just to make > sure that if in the future this patch is backported (i.e. as a dependency of > something else) it won't be forgotten to also backport c9929f0e344a > ("mm/slob: remove CONFIG_SLOB"). How to express that without actively > marking this patch for backport at the same time? Hah, waiting a bit spared me the time to write a similar reply. :-D Writing one now anyway to broaden the scope: I recently noticed we have the same problem when it comes to the "delayed backporting" aspect, e.g. this part: """ * Delay pick up of patches:: Cc: # after -rc3 """ I'll bring this up in a maintainers summit proposal I'm currently preparing. But I have no idea how to solve this in an elegant way. "Cc: # after -rc3" could work, but well, as indicated, that's kinda ugly. Ciao, Thorsten