Received: by 2002:ab2:4a89:0:b0:1f4:a8b6:6e69 with SMTP id w9csp193444lqj; Wed, 10 Apr 2024 07:56:18 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWqvvK1eynoHoe8ymKW8oYU9WH57Ca1dZoVYd310jIQzFdMm+Koifk2bysRDNbHLnaI+9Edpq6BaiC2CJlIaUq3b0h+XisrNYDOZCu66w== X-Google-Smtp-Source: AGHT+IFGGtXhmUCfFwmewdUqsSHnpEGFvMoMdoEiAWUchG7I81qao92aZU3IfRXCvADEzUN7I4Wy X-Received: by 2002:a17:90a:408d:b0:2a2:4f43:2aa with SMTP id l13-20020a17090a408d00b002a24f4302aamr3095865pjg.5.1712760977835; Wed, 10 Apr 2024 07:56:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712760977; cv=pass; d=google.com; s=arc-20160816; b=owx8s/MeEh/xlOlae6ud0qn6Mi9niEguo44h0Yi75jKGGzLZ33pKqdvpjCeligQ+62 eixHocxIENF5OrnRKB9WXWsny51Euw7Ha5i8WqAha3o4Njm5L9dkjhJZUW9lW/5BDeAN sv4pn9q2r97UlyshLl7YMUuarN/W+qpWJAF1gGOMRAOhN2BxXL5TA0PtQnVbahXovhmF 4eNBC8XtkwyDc1SU7DeZ1UI1oYzreR7kTaVSOaIWnCKlsQ/bcspQlihCj76EOqA44nUV METjGXeBugQ/MR8LN90DBymP5qbXFNMEJzeNIB4EO/e7OJNL9l+ckAHlEogaEMMlI0Gt mxfQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:dkim-signature:dkim-signature:date; bh=RhDVG2F9WXHf/tQLyq5MH5q7SbNdjT+z4V3IMNo6lx4=; fh=5ZgsBp531Z/TnicYuMjJd/Em595GtQzH4MQc5+/9Dho=; b=r7PXppgRM3JoDbG7sn2eFHrZpJ9i8KqF8bVpEtp08aNJlVgVgVRrHGeL3oFBapF2Ep yzFm/ZGD3yDTjTJjaQmu4v8kMtU3hXlWaUB1Kp1kmefWp33338u8og49wPweuUJGCv2F nbOlDBZQP5uCnBryjWyQCbtBexblhH4jpHdFiA6vmVY+9X6NQa/IA3Weh139PgbLaWlj SQ5RmSTOh90fdZsru9Fj/wLxvl14+yekw6Gs74m2nwj3AYj1YHkhPFeeVDZwn6KsnLz3 4NjLrcN1PEbnY5TflP+gYyeBNZAtN865kJ3EqHJgWLSrpNQbeNnlsR3cnEWuStiEv7G3 duEg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=Cq7VH3UU; 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-138810-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-138810-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 e11-20020a17090ac20b00b002a53ada6b85si1659411pjt.145.2024.04.10.07.56.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 07:56:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-138810-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=Cq7VH3UU; 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-138810-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-138810-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 C987F287B66 for ; Wed, 10 Apr 2024 14:54:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C741E17921A; Wed, 10 Apr 2024 14:48:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="Cq7VH3UU"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="rD1D0Im1" 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 8D7AF179207; Wed, 10 Apr 2024 14:48:24 +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=1712760505; cv=none; b=ipo/SSfd7VmCp29qRBW+eujpggpSiYLaMM2WcwnYnejdPBxPC6pidArTD2p/3aQPerO3g+NyE5wLh26tnjSIocQwYWrhexg7CiJ3HHgPckOukdPB1deMPIK92UZehTbsZ092f8u/kpX4VPKW/MUtoLsiVEZxrwbfFPcdMPGi64s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712760505; c=relaxed/simple; bh=tDuuEQyJDMcj9XwP0qQQysyngBeUz2Vpvg0kCnx+8xk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=YQqk0U5Bz0Ot4NTe/ezAXQ1vBprPQjSNNCn1bPvW7mAzRC9HEnAyFeyjYfAt1OQzrVWX4Nvh2zPmmzg9Wo0tvzzgXVTN6krUo4EDGXk1AamdaV7bys2psMRYD8OFf+N97vzB21cUn5aIgOWNIf7k3wX/+FVyGUGa2N2gf63RNPI= 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=Cq7VH3UU; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=rD1D0Im1; 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: Wed, 10 Apr 2024 16:48:21 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1712760503; 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=RhDVG2F9WXHf/tQLyq5MH5q7SbNdjT+z4V3IMNo6lx4=; b=Cq7VH3UU9v17nIymWd7BnnRkuiUkRvP3jDCmzgN0BIkQpdaZbH6K8uS/+x6MhSIMheCscK UTTCh/C0tkPqOKpmsUSUOAWKZ+45uMw4SIQ4VwgR2UHAoqcSWJ/1/bXg20w4kvKJm2Xc0i v+2rsXopIP4efDjij6v/Hy800ZUmbTo1zYNV++tTKVWEZqmpT8Uo4gSaspFgBEGEevt37W 80LkdxqFWBglf0VlRyePtLrGSWoAR5G2HVQfT4+ZHP+54yl2M+CMA05phYwB2WrkGgrdlZ b0tzHWuWwt1Rbm3bZu2xmJUjlmSiA1UHuE1ZIXzv+MKwW0XDBgN8uA8RbQiNXQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1712760503; 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=RhDVG2F9WXHf/tQLyq5MH5q7SbNdjT+z4V3IMNo6lx4=; b=rD1D0Im1EO5uMEliAwyEZ+ROwmRF7ctoAFXiBTycXQfc5VrdGW1yVkDhV61fhjb40kTQqx c2Gs/Rg41ogRZBBg== From: Sebastian Andrzej Siewior To: Frederic Weisbecker Cc: linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, Adrian Hunter , Alexander Shishkin , Arnaldo Carvalho de Melo , Ian Rogers , Ingo Molnar , Jiri Olsa , Marco Elver , Mark Rutland , Namhyung Kim , Peter Zijlstra , Thomas Gleixner , Arnaldo Carvalho de Melo Subject: Re: [PATCH v3 2/4] perf: Enqueue SIGTRAP always via task_work. Message-ID: <20240410144821.bVdBdVOR@linutronix.de> References: <20240322065208.60456-3-bigeasy@linutronix.de> <20240409085732.FBItbOSO@linutronix.de> <20240409134729.JpcBYOsK@linutronix.de> <20240410134702.dcWYciZB@linutronix.de> <20240410140633.0MHBLpMI@linutronix.de> 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 In-Reply-To: On 2024-04-10 16:42:56 [+0200], Frederic Weisbecker wrote: > > > Like this then? > > > > > > https://lore.kernel.org/all/202403310406.TPrIela8-lkp@intel.com/T/#m63c28147d8ac06b21c64d7784d49f892e06c0e50 > > > > Kind of, yes. Do we have more than one waiter? If not, maybe that > > rcuwait would work then. > > Indeed there is only one waiter so that should work. Would > that be something you can call while preemption is disabled? rcuwait_wake_up() does only wake_up_process() which is fine. wake_up() does spin_lock_irqsave() which is a no. On the other hand that preempt-disable needs to go anyway due to perf_sigtrap(). But a slim wake is a slim wake ;) > Thanks. Sebastian