Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp470922rdb; Thu, 18 Jan 2024 08:50:23 -0800 (PST) X-Google-Smtp-Source: AGHT+IGk7QO82Rq+9nnqkhJl24mZTFDQefv0aKMmKJMQ0H/sz2HV2xdSP6SG1Wm1YNtOOTuQfLGl X-Received: by 2002:aa7:88cf:0:b0:6d9:aa4c:db9b with SMTP id k15-20020aa788cf000000b006d9aa4cdb9bmr1141863pff.10.1705596623373; Thu, 18 Jan 2024 08:50:23 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705596623; cv=pass; d=google.com; s=arc-20160816; b=hfUveHJTbRMgXN/K8PWS2Ww6DVy2Mu9vdF5xo12E33wQC8XIKl9nysdORutHTu4Ojk HrE7pmc+r1hUaHfU6gaIf6Xafoq+uLMCUzaN7TUayb59Ov5eu7sOvVqJeD9jBhYW6Z2c p62ftDi4bgAdCwWNc8dkW8ae2LSdL/DWwTnuWRUG/iDio6XxCZekf6XJqY+mbxupOO83 tNcnT9viE2oyrxRbxxW9HZtr0lOdszMS0YibYF33/IlGWstQLbkgj79lhaQgxkpCh9Gm zM7XY2+fmBCQjPOAhpudNLLzJ0nh152mdIhBdpL+DgrNC6hCNmeqFQlcGM4p/T6l5/bE Mvzg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:dkim-signature :dkim-signature:date; bh=zdaadLxs4Ckkw6lRcG0g1ZosLJY36Mhsh/+4Lr+mqsc=; fh=ZUazKBU4kEf9njyf6kBf2RFXzYKfc26iIyBBXpuLBCg=; b=SU6SH5iLzUbUoy3vX1OZHv2Q8shcGgV8cu9AGXWXZLqpo68k5NGRtJKDsNMFTAIPCy T27c7n8Hb2qU6Z8xO9loUuQsVKsdIM3NipzJIpg054xgY+cE++kMwL3iCM/LqQW1fUC2 FyJLCwHCw5cPJP4iEC/p/Spy0CZ0EsZQRVd4fHGWQ1/DO1QF8Ml9NVetHASTzxzWyAhP h+fiu7ANhQzTt/6YYu6uDHzV/7Xt8p2Bf4POtV1brhUwTYlIkwYmPzb5WXuVYMARfKjU iQ8Xjkxsy2SYwZ+/f3ZeG4XFN7Zuu8a1jvWhmrEyZub6PR7q4EjnXi9MnoFGZqsJGySM mZ1A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=0SooyRW0; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-30367-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-30367-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id o135-20020a62cd8d000000b006d9a04db196si3904287pfg.299.2024.01.18.08.50.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jan 2024 08:50:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-30367-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=0SooyRW0; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-30367-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-30367-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 05BCD289C56 for ; Thu, 18 Jan 2024 16:50:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E05CE2C6B7; Thu, 18 Jan 2024 16:50:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="0SooyRW0"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="wTBlkSHL" 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 90F662C1B2; Thu, 18 Jan 2024 16:50:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705596612; cv=none; b=fgwpnzDsGhUCeNSPVnReAOr2BPEWUqTHT1bMEjAmlmnkQKo36Sx8MJ/1nzI15G6Fktgr6+u6h46mkPOyJRYSN57KogOTxcZ4Mt/U6omT5O2BGjd1LFHPrP6AWB++Xjk52IBogScKrAjmSvbVsylczJh790V4yRTst6f1/w7EPlI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705596612; c=relaxed/simple; bh=zdaadLxs4Ckkw6lRcG0g1ZosLJY36Mhsh/+4Lr+mqsc=; h=Date:DKIM-Signature:DKIM-Signature:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition: Content-Transfer-Encoding:In-Reply-To; b=UlT3Xco/r+nOytsv/iVY6vaBxxihBvb/39ko6pT8oBYSiJvHOUA4F0NeqaVHSlSGPcsLARdG7onV6QBcZjAVZIg3Lb22hrFjUNttU/HSYhc6Kk+PZ6hnp3Hc8jHBAJOfBY1CLjRWXUcK8aEeMNk1ILd3JhFzlr1MT+62LPmIoe8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=0SooyRW0; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=wTBlkSHL; arc=none smtp.client-ip=193.142.43.55 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 Date: Thu, 18 Jan 2024 17:50:06 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1705596607; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=zdaadLxs4Ckkw6lRcG0g1ZosLJY36Mhsh/+4Lr+mqsc=; b=0SooyRW0vfUQ0Ad9+s1FhK4/U4HK8JGgPj+4WpPNQwkEkDquPz1HV2In8y8/4qKYXDbcSv fCi8Wi0EiD8JRYv88pNqCpaEFfenbDiDei95Hv8OXENgNRmd2A8EF8X87Kefr6WA+TMhNA RKVNnC+NTeVzd5O82Ocrh0ulUtN/IKj0DxXZHkAZK9ccVqiKXqkjSelFrDuEwQpftGNcJQ tN7EAvl+YbmRbN5GeOWsXmHWq4IZdu+w+gEv6AQV+yMvVa7ETs+gMe2gnecjVZq17Co1b3 S7fOFjgvnogY2hCVMCptzCkQGoEo15JRDRO3o87wRqKWpSPG56j0LGRjYjMmxw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1705596607; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=zdaadLxs4Ckkw6lRcG0g1ZosLJY36Mhsh/+4Lr+mqsc=; b=wTBlkSHLCsZKBgNRDbQ2CcK80b6axVIPWR1am1GIK42vzNe3az85EeOJNW48b36hCcl3AS nbOQRJEHgQ+wYMCQ== From: Sebastian Andrzej Siewior To: Jakub Kicinski Cc: Toke =?utf-8?Q?H=C3=B8iland-J=C3=B8rgensen?= , Alexei Starovoitov , LKML , Network Development , "David S. Miller" , Boqun Feng , Daniel Borkmann , Eric Dumazet , Frederic Weisbecker , Ingo Molnar , Paolo Abeni , Peter Zijlstra , Thomas Gleixner , Waiman Long , Will Deacon , Alexei Starovoitov , Andrii Nakryiko , Cong Wang , Hao Luo , Jamal Hadi Salim , Jesper Dangaard Brouer , Jiri Olsa , Jiri Pirko , John Fastabend , KP Singh , Martin KaFai Lau , Ronak Doshi , Song Liu , Stanislav Fomichev , VMware PV-Drivers Reviewers , Yonghong Song , bpf Subject: Re: [PATCH net-next 15/24] net: Use nested-BH locking for XDP redirect. Message-ID: <20240118165006.5aWFm7Sv@linutronix.de> References: <20231215171020.687342-1-bigeasy@linutronix.de> <20231215171020.687342-16-bigeasy@linutronix.de> <87r0iw524h.fsf@toke.dk> <20240112174138.tMmUs11o@linutronix.de> <87ttnb6hme.fsf@toke.dk> <20240117180447.2512335b@kernel.org> <20240118082754.9L_QFIgU@linutronix.de> <20240118083812.1b91ba88@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <20240118083812.1b91ba88@kernel.org> On 2024-01-18 08:38:12 [-0800], Jakub Kicinski wrote: > > If this is the per-CPU BH lock (which I want to remove) then it will > > continue until all softirqs complete. >=20 > So there's no way for a process to know on RT that someone with higher > prio is waiting for it to release its locks? :( You could add a function to check if your current priority is inherited =66rom someone else and if so start dropping the locks you think are responsible for it. I made a PoC that appears to work for timer_list timer which is one of the softirqs. This made me realise that I need in more spots and I am doing it for the wrong reasons=E2=80=A6 Sebastian