Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp579833pxu; Thu, 15 Oct 2020 11:02:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxywcHGALLy83nKloQABObsZGIaVnjeAeUysbKyoqs5KqyXs9p7GolgrDIORdFNZ19GJL/n X-Received: by 2002:a05:6402:941:: with SMTP id h1mr5554497edz.154.1602784964771; Thu, 15 Oct 2020 11:02:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602784964; cv=none; d=google.com; s=arc-20160816; b=qmeBz7+2w7kuLnDxqU83burQqJdTjAhoYuJL6Wj78AJ/fQO+TtMPoAza7r8fk3Kw2H RWJZW7JxbSkcixpIn6khaNJRswVQcZ+3rUPapH8XVSgPlKlwWEVEW7OY7g9/wi1BvHOA BDxrR1n5DHWx62/GBUCu2paiqcjFRG+XRQfyS4fw20eVkvmDxh3UalOVSCP6TOtLt86y 4TRBZ51Mkdg5HSnY8gYmcVOY3cjCEt25LxJOxlPD4kA/qkYDcsou3e5J1S6GcEep8VEt s3+RgeUcVIYX40r/c68Hs8pmTperRINMnRSRIXHnEUxxe19zNu8w7+GKfC5DQTIETBqK p37g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=Skwtr1L/ml3AFpge62Q6x9UKEnNj6/PYgeEkAUrhwYs=; b=ACoM/04YpFnyT28L5BYSBKM8iiRz3/5tC3YLaOHp2wEY0dJpjzrNW68AGoV/1MnNN3 SkP7c4EFDjthx4VPgG+ULE4OJSo39wjK/xBQHlfseQpnuBuvA6ekyycxexcMUuKApHO9 Dsd3YA5aMUEXIfzlaS5UEioXVQbwK8pWNU7X+sGpOInbjJVRwXMrPsQfW0Wxyuw4muWe ps9zT0B3F1JdOOFXh/lMOaPmFwy/b3+1iwl0d2mbPN83SH35xZRZIkssvGGgopwi/peb qV1FZygy2eSaO1n/KMwUoG1jHKvBBkMJo2vZ2/92FLJJMOPiBm6MxaWuh35SpsM8R9tt RTUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=1odp1ddE; 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 q7si2565380ejb.740.2020.10.15.11.02.16; Thu, 15 Oct 2020 11:02:44 -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=1odp1ddE; 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 S2388612AbgJOOeh (ORCPT + 99 others); Thu, 15 Oct 2020 10:34:37 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:38270 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387589AbgJOOeh (ORCPT ); Thu, 15 Oct 2020 10:34:37 -0400 From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1602772476; 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=Skwtr1L/ml3AFpge62Q6x9UKEnNj6/PYgeEkAUrhwYs=; b=1odp1ddEnX1ugOpOy3b0L/qvR9XSDoyAsjobhOsjVzwQjJGawjWzJ+C9Vjo69ZiwPED/je JQ7jdYeu1glcEinzjM6/5rWLUTmNsA7/NKhRihRe0wXwll64iSqOgtk8XWvq9LlvF7+ceC MCCXIG8/yiqiVvf8NWPCTqCrIKJdZkJac9gTD7mIZxjGe2/BlzCq9kIJT35Gbi8dICjlG0 lwOKXOof0hW0xLMRRpHewVMtjmSGcI5OyJ/SZ0PkS+rC5J2KOJ1n7nJ6sFjBqNRowpp9B1 kW1Lwe5v/oKHn/pdgJaroRvDgWx6EZJ4G7ySDoyXHsEMPoHnd0/ETardjT7alA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1602772476; 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=Skwtr1L/ml3AFpge62Q6x9UKEnNj6/PYgeEkAUrhwYs=; b=La+twWgj/McvsrWXN6WPR+NdPJyat7AJ+l2KNhg/wjh3tEeoyZkNWFzU76oJyYMRl0YQoE wXj36SxbBCW3NGAQ== To: Jens Axboe , linux-kernel@vger.kernel.org, io-uring@vger.kernel.org Cc: peterz@infradead.org, oleg@redhat.com Subject: Re: [PATCH 4/5] x86: wire up TIF_NOTIFY_SIGNAL In-Reply-To: References: <20201015131701.511523-1-axboe@kernel.dk> <20201015131701.511523-5-axboe@kernel.dk> <87o8l3a8af.fsf@nanos.tec.linutronix.de> Date: Thu, 15 Oct 2020 16:34:35 +0200 Message-ID: <87ft6fa77o.fsf@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 15 2020 at 08:31, Jens Axboe wrote: > On 10/15/20 8:11 AM, Thomas Gleixner wrote: > We could, should probably make it: > > static void handle_signal_work(ti_work, regs) > { > if (ti_work & _TIF_NOTIFY_SIGNAL) > tracehook_notify_signal(); > > if (ti_work & _TIF_SIGPENDING) > arch_do_signal(regs); > } > > and then we can skip modifying arch_do_signal() all together, as it'll > only be called if _TIF_SIGPENDING is set. Then you loose the syscall restart thing which was the whole point of this exercise :) Thanks, tglx