Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp1404767pxu; Fri, 16 Oct 2020 11:04:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxEvItZtIks7z1HtmmP95Wfo5lEj03HamGnT9oc0hFkX3VCB26Eeo1pxGaeDgwWL3iyGU7n X-Received: by 2002:aa7:c608:: with SMTP id h8mr5303953edq.16.1602871473212; Fri, 16 Oct 2020 11:04:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602871473; cv=none; d=google.com; s=arc-20160816; b=a7gAycWIbye5P1RKzuryl9ICnoh8+CTVjBh9/5PdHrmueV+vYB++YTC/QWZEM+6beQ eHJPX0vQxnZY0B+J4hX0xjovHg5wUwAiRwEnTi+FUkXV2sLYkpMKE68l6KHZP7ycsJC6 /RgZX2hriklIq7uLWChsYI9k/gOb6V/hKS/A0VOZ6Wp90jk+5cKCLYxLEsJ+UHQKGyhc t9pHC4iNFIhYy4wJCYgkQUwSLb7HwS1E6b4gvWyrWsPmC1f2lA85ocEbkMLr83SsFoxQ 51b7/wGFcw5siMAJ799FBWAyTjoDdh1l7GlOedc1h2/7B4a57R0jGkvaUbl/qfp9PJPJ L4ug== 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=VjN47K1oRc9Uf/luZGiXWJiCGTO/s1PL6HhypKJDE2Q=; b=YroZauKh0AuzPp5yg3qm53v0fnPxSNEvwe/nGr2w828+GGyiuYV2R5xO23MR7TUGqN AJEvoRFO16VBb9LueGn8HSyS7eaOm4L+V6lLndapMLa7C0t1+rwnQ7WkkCg19xNWM0Jm 3WNlOGdxtA5lMvtbwczih8MYGGuyT6ahIn9eTL8dkqo1t/NyEZuZUDMg8RDJoB/uaPFW pLheM30O0+a8Lak5aH+YpH62LhqwqFH+vuDKTos09HcPQxGxcqZ9pfQ2DGfJz7tOFAg1 4K1ynE9+x0ktK2kl/Bo41NO2u5jf5kQobKLyyZIZOVzC02ihxqkb3fHL/5jj7qiAZU9M o84g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=WprMmSjc; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b="/1McgWzP"; 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 s20si2274681ejy.78.2020.10.16.11.04.09; Fri, 16 Oct 2020 11:04:33 -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=WprMmSjc; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b="/1McgWzP"; 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 S2390799AbgJPSDH (ORCPT + 99 others); Fri, 16 Oct 2020 14:03:07 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:46092 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387509AbgJPSDH (ORCPT ); Fri, 16 Oct 2020 14:03:07 -0400 From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1602871386; 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=VjN47K1oRc9Uf/luZGiXWJiCGTO/s1PL6HhypKJDE2Q=; b=WprMmSjcUBCd+LqmcC2gB1CcFxwAHpvQBnJIdzVwBAT1qAekwpAU5Dbt25J8CJvIFGKYW7 tZML5GsXmAY2qY/kKMJpGwDwbuHxWjLqu7grCPxoklSBWJKZ4sYINii6dkXmQUwfOkL/xZ /kDKUD1o82xkRdQKQwLqRzozdLk72IqJcao0K7Ky2cJj81yT49YlLk0k7uuxWE4nl6nb0B xOTfoSjlWjaiZZyKHiFH7yy2PyEVdviIdlD6qwNiEgcrEMyhEiWhGNMNo168YsMlyrH7nj iYGBo4csD2L8Z9W+CuHmiRiy6CVI9kGiXV2cy2748L7aqjwF7w1Toa2Aiu057Q== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1602871386; 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=VjN47K1oRc9Uf/luZGiXWJiCGTO/s1PL6HhypKJDE2Q=; b=/1McgWzP+vZ+PGht2uWGHFsQMF0oMXXCvUssNI8fYGSNvuRHLoTIe5OxfRpLEMd4AH74Mf Dl6lmorJ3AhoSnCw== To: Jens Axboe , Oleg Nesterov Cc: linux-kernel@vger.kernel.org, io-uring@vger.kernel.org, peterz@infradead.org, Roman Gershman Subject: Re: [PATCH 5/5] task_work: use TIF_NOTIFY_SIGNAL if available In-Reply-To: <1a89eacd-830e-7310-0e56-9b4b389cdc5d@kernel.dk> References: <20201015131701.511523-1-axboe@kernel.dk> <20201015131701.511523-6-axboe@kernel.dk> <20201015154953.GM24156@redhat.com> <87a6wmv93v.fsf@nanos.tec.linutronix.de> <871rhyv7a8.fsf@nanos.tec.linutronix.de> <87a6wmtfvb.fsf@nanos.tec.linutronix.de> <20201016145138.GB21989@redhat.com> <1a89eacd-830e-7310-0e56-9b4b389cdc5d@kernel.dk> Date: Fri, 16 Oct 2020 20:03:04 +0200 Message-ID: <874kmuaw13.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 Fri, Oct 16 2020 at 08:53, Jens Axboe wrote: > On 10/16/20 8:51 AM, Oleg Nesterov wrote: >> On 10/16, Thomas Gleixner wrote: >>> >>> With moving the handling into get_signal() you don't need more changes >>> to arch/* than adding the TIF bit, right? >> >> we still need to do something like >> >> - if (thread_flags & _TIF_SIGPENDING) >> + if (thread_flags & (_TIF_SIGPENDING | _TIF_NOTIFY_SIGNAL)) >> do_signal(...); >> >> and add _TIF_NOTIFY_SIGNAL to the WORK-PENDING mask in arch/* code. > > Yes, but it becomes really minimal at that point, and just that. There's > no touching any of the arch do_signal() code. > > Just finished the update of the branch to this model, and it does simplify > things quite a bit! Most arch patches are now exactly just what you write > above, no more. Except for all the nasty ones which have these checks in ASM :)