From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A79D0C2D0A8 for ; Wed, 23 Sep 2020 15:29:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6A83221D41 for ; Wed, 23 Sep 2020 15:29:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600874996; bh=7l4VO5Gn17d/Ct5xI0JVWzhQ7CT5xAwugtJymierFeA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-ID:From; b=K9y63HzdwyGqZpTJu9PVdWWuAtCXXGBBkJZ7OaGOvHRSJ6tb98w0qeZILyES0m4qL x9E3QCHS9BU2R0PpcELpTWipu+NZPc9uDGbDYIcHlLXITp0Gx+Darln/hQ7HXF6Zrf gLOiBgUuQH9dqWnf8fNXXJ/we9PZUpMaO28GUM1E= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726613AbgIWP3z (ORCPT ); Wed, 23 Sep 2020 11:29:55 -0400 Received: from mail.kernel.org ([198.145.29.99]:57928 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726130AbgIWP3z (ORCPT ); Wed, 23 Sep 2020 11:29:55 -0400 Received: from localhost (lfbn-ncy-1-588-162.w81-51.abo.wanadoo.fr [81.51.203.162]) (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 3BD902137B; Wed, 23 Sep 2020 15:29:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600874994; bh=7l4VO5Gn17d/Ct5xI0JVWzhQ7CT5xAwugtJymierFeA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=TkGx1xypxUZDmg9hdxcDqHvjvN5E1SfL0AKJ+KJxR5iDR8a8AgnnD8vIR9j5SzFIn 03CDUJilH/E2nJCCdItK8sdF5AUard8jbKjsARZAySQxh2oyXrjUPV+Jq2qNUi1Di9 ltYgZBuYHgMmGKFExoVgZ5/U4QFBTWhl+CjzZxyQ= Date: Wed, 23 Sep 2020 17:29:52 +0200 From: Frederic Weisbecker To: "Paul E. McKenney" Cc: LKML , Steven Rostedt , Mathieu Desnoyers , Lai Jiangshan , Joel Fernandes , Josh Triplett Subject: Re: [RFC PATCH 07/12] rcu: Shutdown nocb timer on de-offloading Message-ID: <20200923152951.GC31465@lenoir> References: <20200921124351.24035-1-frederic@kernel.org> <20200921124351.24035-8-frederic@kernel.org> <20200922001756.GP29330@paulmck-ThinkPad-P72> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200922001756.GP29330@paulmck-ThinkPad-P72> User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 21, 2020 at 05:17:56PM -0700, Paul E. McKenney wrote: > On Mon, Sep 21, 2020 at 02:43:46PM +0200, Frederic Weisbecker wrote: > > Make sure the nocb timer can't fire anymore before we reach the final > > de-offload state. Spuriously waking up the GP kthread is no big deal but > > we must prevent from executing the timer callback without nocb locking. > > If we had just the previous patch and not this patch, would things break? > Or are you relying on the fact that there is not yet a connection to > userspace controls for this functionality? Exactly it shouldn't break because only the last patch makes the code eventually used. Thanks.