Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp412337pxb; Thu, 30 Sep 2021 08:39:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxLUmXtXrq0qiMF/YhN2CL6EqISS7DjrSLhiwpfLxIrMJS1rf6m7h0NUOt1+REMw6QOlNHY X-Received: by 2002:a63:dc42:: with SMTP id f2mr5601102pgj.152.1633016396010; Thu, 30 Sep 2021 08:39:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633016396; cv=none; d=google.com; s=arc-20160816; b=W9PC2A7E/ZI2u4EHwSJUAn6zSm8Pu8yg5p6g2LuSB1DwmkeDvOF/bfO/nck99Sj1N1 o5AHI3HApJrQAiuWwgu7xFwWARPM+SWKPYooYzScefk8KRa47wmpKWJCf5m/SoPDhu4g p3Yy7HoyvIlw+LJujE+jmU8+ThMsF+XE8TAlUBvNCr2yDAX/SR4CsTSL8DFYAnwYo9SR om6c2xU1wSf37D1HGfBRuwOeat7GM9BLvivZZFf5/lYmpz1Ze3agq/mLry3e630wYeMy TQ9f3mWDChiZ0ysrNLBhOF7zpRxzKy/iiQW5PisU9rz2Tfg/G9PXZe0G2UTP38k+p2qt acKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:dkim-signature :dkim-signature:date; bh=eSUo1ok0Gfuwkn0q6B4OK+IDqp4mq2TmsE79ya8gqyc=; b=MgTpUDGLxxslUaX79AzV0NofJV2VhdZhFdzcPON5bi+KSkxSzDJWU1hM/67OKdpDa5 D81hJxsKf5YsLm1/OoPSIrhR0+7ZbpbwgyGOd8+dTkTWJw7W5yPWerze+fKZbRxLFPGb eK430aaoActs7bL6YKvduRJlZi0Z/mjRJxcvKOILier/M9keTeroMAQY3vws0MFUJsdf ErXfW3PsMPHmf9eZnJnzxdtpEfJagh7MObC0c2iSARmJn0LAyHD2ASOQHA9MNiLJS6D1 a8Yt9Ikjptvo3O2JdecJnm86MSjwrLzRqlAUXHpk/4Fw3dXsCRCpdKPddSt6qvgKDKDC 4EUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b="dXT/6ABw"; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q4si3939512pfl.27.2021.09.30.08.39.42; Thu, 30 Sep 2021 08:39:55 -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=@linutronix.de header.s=2020 header.b="dXT/6ABw"; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344962AbhI3PjY (ORCPT + 99 others); Thu, 30 Sep 2021 11:39:24 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:50918 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344642AbhI3PjX (ORCPT ); Thu, 30 Sep 2021 11:39:23 -0400 Date: Thu, 30 Sep 2021 17:37:37 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1633016258; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=eSUo1ok0Gfuwkn0q6B4OK+IDqp4mq2TmsE79ya8gqyc=; b=dXT/6ABw/+kqhTbVmKiG6sNw3hdKQ4cikyrgmktM+/19iGOA2ZsB5mFqooC4ll4pHPG7Zp yEoiEJbqGmvZdBzFBtAue2HVwqURCLtyA/4TorcOvpW2h8Cg56HZWuXBu1Esy/WyTHo4t2 3vRU1PuPqduGTMc/koVVsck+0wYkCqQ9E2WZFZeHm6ytA72u4SmrqzKh3DcPvFNvy6DkX4 ADOVzlRmf34cxFl3COQjHRunkIFD4t6+9/7SaEZwV59U8CTIIQbDw371ofVrR/NMZl7CQj cwBk7vo4w6cR7lrCRh8oPkW2i+g+Xkg/+JVR3f7RSszMk2BvBJNesZUaM5DqgA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1633016258; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=eSUo1ok0Gfuwkn0q6B4OK+IDqp4mq2TmsE79ya8gqyc=; b=cJ7PQOMjC1UbbRmYixsk3/uybvQ/Juns9rUMg5tDtBlZKzFBWl+4+kIdT+8/rIv+e36mk0 bMG1Rt+G6J/wLVCw== From: Sebastian Andrzej Siewior To: Frederic Weisbecker Cc: "Paul E . McKenney" , LKML , Peter Zijlstra , Uladzislau Rezki , Valentin Schneider , Thomas Gleixner , Boqun Feng , Neeraj Upadhyay , Josh Triplett , Joel Fernandes , rcu@vger.kernel.org Subject: Re: [PATCH 11/11] rcu/nocb: Don't invoke local rcu core on callback overload from nocb kthread Message-ID: <20210930153737.lljjay2cquph7cfv@linutronix.de> References: <20210929221012.228270-1-frederic@kernel.org> <20210929221012.228270-12-frederic@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210929221012.228270-12-frederic@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021-09-30 00:10:12 [+0200], Frederic Weisbecker wrote: > rcu_core() tries to ensure that its self-invocation in case of callbacks > overload only happen in softirq/rcuc mode. Indeed it doesn't make sense > to trigger local RCU core from nocb_cb kthread since it can execute > on a CPU different from the target rdp. Also in case of overload, the > nocb_cb kthread simply iterates a new loop of callbacks processing. > > However the "offloaded" check that aims at preventing that is wrong. - that? > First of all that state is volatile and second: softirq/rcuc can > execute while the target rdp is offloaded. As a result rcu_core() can can what? > Fix that with moving the rcu_core() self-invocation to rcu_core() itself, > irrespective of the rdp offloaded state. Sebastian