Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp246407pxj; Fri, 14 May 2021 02:21:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyvtrLrLBiGBB5ONg9jFG9+gNBVEFgIrJxxVm7qQlEI0ijzPfJtJ6O5VcUXIENXQpMR90+B X-Received: by 2002:a05:6e02:144f:: with SMTP id p15mr39052045ilo.143.1620984117238; Fri, 14 May 2021 02:21:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620984117; cv=none; d=google.com; s=arc-20160816; b=bV5cy5nNBf7sVjlBr086Ba9oLW252DDOpMjbDyJ6t0Q61eEAJsR3DKQvL2GK+8Wjdw OsWq2jSU/kYehOGO8sadA6dSKoZFg+iho+DEhaBpire8XdWzLv7fY82MTDM6XMZXdkST qw8r8nkFn/QJZaoa9xTXZROvy29hwREZikcUw2LwBk7KwKmpesXHVw1MszmJJd1DtHg1 uPbbUTnxIOD93ENk3NuelMCGsY0cQ8HhTGugDuGfXYQE9e6xX3WrA7KZ592isoyYgEnW B/ojGdw1K1xvnhU9Cn58FrKhUn64+Cvh23uT7XqdY2bFxEfYYmkIgZeQUCNfzcIpnM6Q p0jw== 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=UDYBAnUNVds5/OtpkhwNFKlve4qytkO6+gA4HAqZDTs=; b=02b2BffjWSj8t6hLYvb6gyvc33M07g7tDWdSRHFL+LjFc+4S0+S+4j5fbcJJOYUUiJ odnLB7uJ8g6Bt/KBo6TBrerfr2QBu33CgxZu400oiwTSoJirheFQPkrodEvgv9eV89iE 9QoRzTaLdBNbj4GUFP7Em+DLgMuCLSDM28ByFS9sg+aSDJ9UQmh8k8NNZLH2wJ8QeapB NQK8LkhjeICoXqaLwFX7hbb9DGD0YZ00Fj/hMbLz3JSax+fwFqZZ3VZwLfgQSAbmYQPL W/7srLdYsfX1S8pbpF5knfF0TSdmVwebvee7S5fvamgiPGgoLOdO1Kir8gd3VV/Z1nw+ qVzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=EO4taY8W; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=Tym0xYGD; 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 g2si6404732ilk.84.2021.05.14.02.21.44; Fri, 14 May 2021 02:21:57 -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=EO4taY8W; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=Tym0xYGD; 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 S232357AbhENE4v (ORCPT + 99 others); Fri, 14 May 2021 00:56:51 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:34266 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231377AbhENE4u (ORCPT ); Fri, 14 May 2021 00:56:50 -0400 Date: Fri, 14 May 2021 06:55:37 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1620968139; 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=UDYBAnUNVds5/OtpkhwNFKlve4qytkO6+gA4HAqZDTs=; b=EO4taY8WAUQepkIPrbKdufIr8KJwcrhs39A5L57J0vWwteB+JghYgyCYOtc2giQXdvF9O5 dyUREJ2GzCaT/YDVRLJE0ymYeq6WwBBafaf2fuoDZAw/rjVFB+tbKQlhNfddXH2d+q6pgX /78oq9NkGJXgLNiKSp3dl2m4ccM+JJrl3AhftCNeVHUw81aAysqmtMiIRcQLkeI9e8FU/g nh8LVZ8srYI08HfDbtczbax0YXhE3+i4kks9DnaR158l3W0YFuofDKmWVvk3m/XaM3nZwx IY6quqxqRHxd+1lFdKM5EJskWk5IX69hdpkj/jgycM2pl0hlOBk5LPMP5A2/5A== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1620968139; 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=UDYBAnUNVds5/OtpkhwNFKlve4qytkO6+gA4HAqZDTs=; b=Tym0xYGDi0Fe4s9N/qSGAYWA91XxDnFqsm4dbXDd3rxZKFQgXrqrjZoOiN6uKo7xIzIj7s tXkni8Ls23/ykQCQ== From: "Ahmed S. Darwish" To: Davidlohr Bueso Cc: Peter Zijlstra , bigeasy@linutronix.de, tglx@linutronix.de, shung-hsi.yu@suse.com, linux-kernel@vger.kernel.org, Davidlohr Bueso Subject: Re: [PATCH v2] seqlock,lockdep: Only check for preemption_disabled in non-rt Message-ID: References: <20210507233951.78950-1-dave@stgolabs.net> <20210507234713.86097-1-dave@stgolabs.net> <20210513195357.xq57b2t26hhhmdn4@offworld> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210513195357.xq57b2t26hhhmdn4@offworld> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 13, 2021, Davidlohr Bueso wrote: > > And therefore converting it to an associated spinlock would avoid the > preemption check, which is exactly what Ahmed has already done: > > bc8e0adff34 (net: xfrm: Use sequence counter with associated spinlock) > e88add19f68 (net: xfrm: Localize sequence counter per network namespace) > > Sorry for the noise. > Exactly, so it seems everything is good on your side :) (The pending patch queue I mentioned is much larger and gets rid of the main packet scheduling sequence counter Qdisc::running, but I'm brushing it up, then sending it for an internal review round, first. There are already some workarounds in the RT tree for that one until the correct fix is merged mainline.) Kind regards, -- Ahmed S. Darwish Linutronix GmbH