Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp579948pxu; Thu, 15 Oct 2020 11:02:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyqJkc6wXVJfejfRyIVjMdXfxP3gQ0RhF0gjX+NVYWQ8TDmjNd2o31eFYdoIM0VDhENNprY X-Received: by 2002:a17:906:7016:: with SMTP id n22mr6087053ejj.402.1602784974548; Thu, 15 Oct 2020 11:02:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602784974; cv=none; d=google.com; s=arc-20160816; b=I4MJXDKMJvTGrBw7pY5rUeuNvgpr7vL1YazZHxQCU9JTONL3d1971bAqXMDWlX5L/V E5aw7VAp6oZJcMpxu7my7TD1vBtcQIkyhB7lGj6o/Oe/Y0hh2dxCpWn6YGnSjkKlBouU WEO03bN1z0zqVnWoQYvzPwXGFdxUgjbDfyEf+QLZ/JotCmTr1HcpekLR37ugltazayzX E0ncp3yF761EsmzyX2U51gCP/bRwMrPfEh012EEc3RX2Mnm5Huz3FJtkh2XeXjRCZLhk 9jof4KMBPSfoYgq8Eir58OWZTQptL9r4AlCMEDFjer5PsYJdJnFP3W9HrGoMXSBL9Whv XBxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=3L1/9TBjpLndWthwoBtB4TeBTtQ0A63hi99kT0nsw3A=; b=SqRtgsxPZJj+5JERQDXoqaFhhMd1bAYFE4amQduxcdVEPsdssNiPTK0EdKu1ONjs/i Ixg5YcXLRWYKYojBkub+eyZ8jCxdD60rawqhNu+8BfkJ7ejG7jac3wsl0yahLjNh4XRa kWxB+pRiz2KYbVPPPAk2HgWZHAuoWheVxxWYvmk9mdVxgRYlh6LvKFtgyDg/hUHbAEVy lIkBivHeAOB2ssIRuzTdN7YjV/wgONb5D5tZX6fKbtNTOGUywAkeC3e0/UI3xjzE3U1l RneY1oE6vCsC/2Ojjnhv7cYMbFmnGl6e7U/bdklXlWY+t7VQ1o2SdjCZiGf9QVSXu27K b76Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=BzJiNkYI; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a9si2535607edv.66.2020.10.15.11.02.24; Thu, 15 Oct 2020 11:02:54 -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=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=BzJiNkYI; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388657AbgJOOfd (ORCPT + 99 others); Thu, 15 Oct 2020 10:35:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58174 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387589AbgJOOfd (ORCPT ); Thu, 15 Oct 2020 10:35:33 -0400 Received: from mail-il1-x142.google.com (mail-il1-x142.google.com [IPv6:2607:f8b0:4864:20::142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CAB02C061755 for ; Thu, 15 Oct 2020 07:35:31 -0700 (PDT) Received: by mail-il1-x142.google.com with SMTP id t18so4342041ilo.12 for ; Thu, 15 Oct 2020 07:35:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=3L1/9TBjpLndWthwoBtB4TeBTtQ0A63hi99kT0nsw3A=; b=BzJiNkYItJ0a0K19sc+CJzVjK04s7IdG6sUwtX8FggqZPkZ1Y08i29g2RXglnEgykN Bn8vUti72MSkl86BawXLiX2P8z/DTa4Rz3woD5N0hyOexA1KlTbFXwdS0fuXprwyjKSf Hst+oIURzeY9GdxLuaRyt8fqSOJMyouKdzgKlNHc8x+j9+NcP+05IkJCU3EhtDOTRsds 2Eni0M3FHrANKoKcL0VVZ3QAtYFHsDf+HrnVH0rkwaHK+PM5R4iZQoD/1jmhXrRZfIMy NzfiUz7mc1xv8UIcHfR56hYNV08bN0ClnyQuRAoCpqHOhFl4A2cLyfGwmCCZYfZqpxag pdcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=3L1/9TBjpLndWthwoBtB4TeBTtQ0A63hi99kT0nsw3A=; b=ln9sb69EBGwbdg4EgvgWQ9q+jvJtnzV3rOyf5lwYLUR1DxkwPmqIz662Eu1cLT6w1j drhbn9dXu2v44Nt+IRmV1eavywXZ7outEb9Ll4eMWk1ZJfwzciOYp6OKcPh/fMmp8tXn /4cMifiR3mCq/fQe9GBbHlXGtLgWbERH4DF8rVg67AlwFHdDDAiXFLsQtJXzXhHfBWxO VblNNj6hlME3A2yM1v/286sxCWBobd8O5wpAaiQrSII2C9Cdd4okq79uZ8rd2L0dE0ZP v1dafkBJoO1/lgrM5mO5P8b8p4zFscMNggjkYT5SoDfncW239lSIwor3DDwUVE19rlWg vdgA== X-Gm-Message-State: AOAM531ZOWQ32nRD1dJPTw2YGzOfqUoTyrSpcG8XWUcjV9Bn7XxAE6yz 3J2YRB6V54arlDpnv6CQ095/Pg== X-Received: by 2002:a92:c10e:: with SMTP id p14mr2984337ile.160.1602772531133; Thu, 15 Oct 2020 07:35:31 -0700 (PDT) Received: from [192.168.1.30] ([65.144.74.34]) by smtp.gmail.com with ESMTPSA id o13sm2778921iop.46.2020.10.15.07.35.30 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 15 Oct 2020 07:35:30 -0700 (PDT) Subject: Re: [PATCH 4/5] x86: wire up TIF_NOTIFY_SIGNAL To: Thomas Gleixner , linux-kernel@vger.kernel.org, io-uring@vger.kernel.org Cc: peterz@infradead.org, oleg@redhat.com References: <20201015131701.511523-1-axboe@kernel.dk> <20201015131701.511523-5-axboe@kernel.dk> <87o8l3a8af.fsf@nanos.tec.linutronix.de> <87ft6fa77o.fsf@nanos.tec.linutronix.de> From: Jens Axboe Message-ID: <1a618cba-759f-11f4-df39-bcef64a2e1fa@kernel.dk> Date: Thu, 15 Oct 2020 08:35:30 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <87ft6fa77o.fsf@nanos.tec.linutronix.de> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/15/20 8:34 AM, Thomas Gleixner wrote: > 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 :) Hah oh yeah, good point... But then we need to touch every arch do_signal() anyway, so probably not much point in making the change then. -- Jens Axboe