Received: by 2002:a05:6a10:83d0:0:0:0:0 with SMTP id o16csp24578pxh; Thu, 7 Apr 2022 21:44:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyMBrxzWjG2xBSceJi+pHBnSyWZFOV+tNnf4kSpSB5ixeUdnK2ENEt2AIgAHNeXG31qbm+u X-Received: by 2002:a17:90a:fe04:b0:1ca:c8e5:e3d with SMTP id ck4-20020a17090afe0400b001cac8e50e3dmr1864016pjb.227.1649393077331; Thu, 07 Apr 2022 21:44:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649393077; cv=none; d=google.com; s=arc-20160816; b=uJCU99rE6NcA1hlitNwdAE1U8YyXO0aiN8uSIIjYw61oEBqIW8ZFe90Jr/HpuKvtp8 MQrcNqfCvACJrWO94tx3GbZGmhzNQgSLO0Q3cZMNbMZbC7p27S7KTtapqoX3vnnqWCAX xrYO5TTAu8FWZZ52vpnhcuQtYmeo9Dufub4hxk36mH5HGqTonO353FYRK55aUjetIU7Y U1PHAe6XlXa9+1X5WsG4M+ZkF71+uL3PBm35jrH/cphxZIsojkA7aszyoc7zYv7OdyVd rD5h/xlnU8oMf5j78GgEKr48JGBPHRSG2NV2py49U8jfim0DBpHilKWfBGkT8cZPuzch fFxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=OH6B73uEdPRrFsyU/9vZu2Qf7ZIvy0QbDWf0zCm7uPU=; b=lpecgcZhJbwhlvsS0/TQ3eKfiE6t2L1cg46PcL0Um16NVtBxX0f8I6IdqjdiS0SRvR pibHAarWwMqP9gmSr5cczoQjWBX6c4VT82pho0OBmgHM75ZpEbqBcbCgDpvpvbPmY2nO YZn6+5m6x4Kw0hKKxcfyuh0opFTkanUvL3Vyu5u0djTzNpvOo0CSB3nAQ1mOxUrUqsFy vEDg/UbQLUnX3qd3+ovM9UTqV64bciX5DYTCmq+TBk4aswHJp0rMIfSBLW7s1fqWxqB0 9T3gWIMcjB4osoL3msR3yGGhdYNmg1hrEIK+JbPP11ce+wLTNSEhUjpJ0m100oWFAl5c z9Xw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=jnPukCRD; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id u10-20020a170902e80a00b00153b2d16465si1807138plg.109.2022.04.07.21.44.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Apr 2022 21:44:37 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=jnPukCRD; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 45DE7208254; Thu, 7 Apr 2022 21:10:53 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234214AbiDHEMm (ORCPT + 99 others); Fri, 8 Apr 2022 00:12:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50222 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234193AbiDHEMe (ORCPT ); Fri, 8 Apr 2022 00:12:34 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3EE191CFC2 for ; Thu, 7 Apr 2022 21:10:22 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id E4ECDB827AF for ; Fri, 8 Apr 2022 04:10:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3FB25C385A1; Fri, 8 Apr 2022 04:10:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1649391019; bh=a5MW3Y7fTlcWfiSqExChn/gvYPyz15/eSD1A/kNQLm0=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=jnPukCRDuNYENUubVhda6jWGi7qBKt0mxnQsXPSIMC+ZMY06KlwQ589fj7QryLIqK ATQuvXlavifEXziVeRPHpx4/0N4I4TXp3iamCj8HM+zjmRP8crl90cZyPC4s0RSFW9 OmkHz4Z/CkX5ZT64tB/BJb7ngw5LfOcXxP4wpTcU= Date: Thu, 7 Apr 2022 21:10:18 -0700 From: Andrew Morton To: Qi Zheng Cc: Muchun Song , dennis@kernel.org, tj@kernel.org, cl@linux.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, zhouchengming@bytedance.com Subject: Re: [PATCH] percpu_ref: call wake_up_all() after percpu_ref_put() completes Message-Id: <20220407211018.875696691e4411a7b5c8f63f@linux-foundation.org> In-Reply-To: <35195a61-d531-aeb2-5565-146e345f8bf6@bytedance.com> References: <20220407103335.36885-1-zhengqi.arch@bytedance.com> <20220407205419.f656419a8f4665a2dc781133@linux-foundation.org> <35195a61-d531-aeb2-5565-146e345f8bf6@bytedance.com> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 8 Apr 2022 12:06:20 +0800 Qi Zheng wrote: > > > >>>> Signed-off-by: Qi Zheng > >>> > >>> Are any users affected by this? If so, I think a Fixes tag > >>> is necessary. > >> > >> Looks all current users(blk_pre_runtime_suspend() and set_in_sync()) are > >> affected by this. > >> > >> I see that this patch has been merged into the mm tree, can Andrew help > >> me add the following Fixes tag? > > > > Andrew is helpful ;) > > > > Do you see reasons why we should backport this into -stable trees? > > It's 8 years old, so my uninformed guess is "no"? > > Hmm, although the commit 490c79a65708 add wake_up_all(), it is no > problem for the usage at that time, maybe the correct Fixes tag is the > following: > > Fixes: 210f7cdcf088 ("percpu-refcount: support synchronous switch to > atomic mode.") > > But in fact, there is no problem with it, but all current users expect > the refcount is stable after percpu_ref_switch_to_atomic_sync() returns. > > I have no idea as which Fixes tag to add. Well the solution to that problem is to add cc:stable and let Greg figure it out ;) The more serious question is "should we backport this". What is the end-user-visible impact of the bug? Do our users need the fix or not?