Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6824531rdb; Fri, 15 Dec 2023 09:12:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IETkLaoKI/lo/pA+6Qmp7AZ7GxunXoCL0dpckMx//JXwKQEcY/tkFlbisV8RSuDERZ7zacJ X-Received: by 2002:a05:6e02:1a41:b0:35d:57ea:8e42 with SMTP id u1-20020a056e021a4100b0035d57ea8e42mr16677244ilv.10.1702660358706; Fri, 15 Dec 2023 09:12:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702660358; cv=none; d=google.com; s=arc-20160816; b=i/CoC8Ej+5IGjFU+M4yxLdbI07tOrU2RK/oBCKj1pBKmqSTlySYebKGvKZSHQH0IgZ sYsIGkcPn7/K54viv+NGu7eTX5NZGOnIqGwk5dsfgCMxxWIRfI1mwJCU9RoAgQ/ZJaep ho2Lck8Wk4AYrO6xP2M8g/rC00Egr8/8OJRZn/hxsB/IuzgHFuxevTzy+5wBBG1kNILm L04Vqdot8ToNKlKV7Fuh8dfVfAnw/eMr9sRfH+ixti5hp9/DNjExPbPjNgi79p55bj+E YLp1Y8QgYrVeEEKXEJ3zYAJSPamz1I13itesvOinI05+9mnlqkD0eHStAa4ljm+ZlUuV bPgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :dkim-signature:dkim-signature:from; bh=ousXBW8YKwa+nWI6kv1lhXaySXJ0I7exp/MtxAHjcWw=; fh=isut5FXJ3IMDA31kBhawKjpOqYjZ97Ca69pMNjk4IR4=; b=Tp4XN589rJ+wlBfQ12wgir4WTT1MBiCBBmTL5NwPuwhhLeoGEbxQgAACUHN4SO57Dm Da02A17srqY2E8z56IbxG8WOw0B+a2XR0SzM4h86uCeKyOiodXrvuS9CSZa5114umVKi 6SOkHng49rDNRYyiaeFxp/QA3iLgB2wmG+Tm8I8zq4ot292k41RCrYYzeTdLmqci//+n KKooBSr32BCxWeCjyoTAqXm6rXuEMcmfeFiLrS/5gjfqOvAMEWY2GD+RfzYO0/DmuMOR fQDUXKletoMRXtoXwtLCvzwHBA6TWJfZhnCYn+ksu4pifJmeJnkCEFkE5j5L1DEdHMtt tpfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=EDJgxTzv; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=Fdc2dNEE; spf=pass (google.com: domain of linux-kernel+bounces-1362-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1362-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id o9-20020a655209000000b005b8ee1c0c67si13026237pgp.594.2023.12.15.09.12.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 09:12:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-1362-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=EDJgxTzv; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=Fdc2dNEE; spf=pass (google.com: domain of linux-kernel+bounces-1362-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1362-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 34773B23C3A for ; Fri, 15 Dec 2023 17:10:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 473FD3FE2F; Fri, 15 Dec 2023 17:10:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="EDJgxTzv"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="Fdc2dNEE" X-Original-To: linux-kernel@vger.kernel.org Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 9395D3FE31; Fri, 15 Dec 2023 17:10:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de From: Sebastian Andrzej Siewior DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1702660231; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=ousXBW8YKwa+nWI6kv1lhXaySXJ0I7exp/MtxAHjcWw=; b=EDJgxTzv/PR7nL34hOo/iutHnq9tW0tjeIj2ikrEGyOzaEHjxiQRge594/R+cPF/ZVn63R oqUkJkJIG04oClSRTdQ3kPuusKwzDZZSIEN5C/lZRqSXVwWmwVTGHU5bF00PuJ58inqXPM v0F+i94zKcXl+E3UrPNDDwKtxWA5nJ9uMJjcwILuniEnB+cMU7OHTOlmi1MDFlHP4jmKp4 YTIEejYnnMwDmKYB9rIfw5bQGnlrvTmbpG8OIWeJuqu4eHKZi1ur1Pgi/T+DgukUHx2fix tmt+uvYD0N81CPmW2CrIStLf8b1kk2mng3y1AwF/VPNS97pal+Ia6fLlRpceIg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1702660231; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=ousXBW8YKwa+nWI6kv1lhXaySXJ0I7exp/MtxAHjcWw=; b=Fdc2dNEEqv0Wbzbs4tUFApE/hBTBsMkY2FZ0QLsAPtak9Rt5rAa13DQHGKBmCu3V5o2dFh CAdgwtV7uDMpMXBQ== To: linux-kernel@vger.kernel.org, netdev@vger.kernel.org Cc: "David S. Miller" , Boqun Feng , Daniel Borkmann , Eric Dumazet , Frederic Weisbecker , Ingo Molnar , Jakub Kicinski , Paolo Abeni , Peter Zijlstra , Thomas Gleixner , Waiman Long , Will Deacon Subject: [PATCH net-next 00/24] locking: Introduce nested-BH locking. Date: Fri, 15 Dec 2023 18:07:19 +0100 Message-ID: <20231215171020.687342-1-bigeasy@linutronix.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi, Disabling bottoms halves acts as per-CPU BKL. On PREEMPT_RT code within local_bh_disable() section remains preemtible. As a result high prior tasks (or threaded interrupts) will be blocked by lower-prio task (or threaded interrupts) which are long running which includes softirq sections. The proposed way out is to introduce explicit per-CPU locks for resources which are protected by local_bh_disable() and use those only on PREEMPT_RT so there is no additional overhead for !PREEMPT_RT builds. The series introduces the infrastructure and converts large parts of networking which is largerst stake holder here. Once this done the per-CPU lock from local_bh_disable() on PREEMPT_RT can be lifted. Sebastian