Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp1427587pxu; Fri, 16 Oct 2020 11:39:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzMsQBXjf4cUiw/nMYkX0VMcD+zejo2aJNUEqmyr5fLQT++FZX24KH+atVphbzmYl2rwlSt X-Received: by 2002:a50:9a86:: with SMTP id p6mr5477348edb.96.1602873570308; Fri, 16 Oct 2020 11:39:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602873570; cv=none; d=google.com; s=arc-20160816; b=jR1KSre68A+3yxOsV3CaHMuW1QE7WZGB/JFVuvGDu4m9ZAUUPicJ2U2XFEww/VcEra G/RoLokJpb4ZJnyTkEx2LhCXMG40k9eFMulAqdQI8c/icVyBYD8PevU4m0SX1Qv4C8G+ K8Rc76hoAdPqF3Wk3gL+akCA/xAiEDfwI1FJMajdgyusTfsraPYvQnLJGwQjMb9YdkZT 5jgcRpw76TvTAajWi7jOxXSUPGtvLjbvvRwuwGp+tJy6A/TcT5yEHlFKvkso5TkNCr5k d/RQYuD5AQvTRgJb7UWlo7KAI/OaEXvmP9dQDbdnVjycSkXQ5PMtPHueB5LlI6PH/M0O 1LgQ== 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=sIIYwVzr9MZ7XYUxbhtiYcNWGt28tWA4X7MM75B6zyY=; b=xWN882ytwIwuIhx9hl+/53ZFINklqjSKRlnYcnk+bf4wTN2juciJN+xBeBRcVPaVR3 lcixl0VTSqSiqLcxmmX9uNTgDgchSBiAU8LER8fBeS7HwFScDgs1LVwSASP8oSwUdW4S j8QIOyrLkKDr2dT0EeXrHJ/9/YOmK+qD5yFm5VES5xsytZOXv4+ovczA8HBMdOni/j3N BwuL8UfqEgl82fewPKDoYnibS0f9dN+7wDYvK8F4oVapH9bsobFYW3D7a7dVIpvlW3Pr ulS4HZQ9CwhLtR+lom15PaOaw/fgjhNrZFCnLgxDt11oUoGxy8cnxCKP5QDGqJQD+VLC a9VA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=PfHSe1B8; 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 t14si2334134ejy.440.2020.10.16.11.39.07; Fri, 16 Oct 2020 11:39:30 -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=PfHSe1B8; 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 S2408161AbgJPNfr (ORCPT + 99 others); Fri, 16 Oct 2020 09:35:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46022 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2408061AbgJPNfq (ORCPT ); Fri, 16 Oct 2020 09:35:46 -0400 Received: from mail-pl1-x644.google.com (mail-pl1-x644.google.com [IPv6:2607:f8b0:4864:20::644]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF394C0613D3 for ; Fri, 16 Oct 2020 06:35:46 -0700 (PDT) Received: by mail-pl1-x644.google.com with SMTP id 1so1309245ple.2 for ; Fri, 16 Oct 2020 06:35:46 -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=sIIYwVzr9MZ7XYUxbhtiYcNWGt28tWA4X7MM75B6zyY=; b=PfHSe1B8Nd1DK90c+5psOE40Qq0rPLQprXnrW667HZqtFIAJEi24skC70NnNmLipSI /NKUpfU3MT5xNgol8wfpdlMtn2YpP39dDZMjh0yYS5lV+0X2+ceTGM/qOiUj3ewdrfSH hfNz4naxFqDYDhyBoQNDZSLp7FgzGsGA4xYG8Qb15tIOdYXym31SHPGhdiRdv6DGc0mK PjpfXIozTggBIBgssa73/11RZCZpQoKuYh9Du2VYNONZuBsA2xVR6CVv73ZdOkdGJnm0 vFHJZN8s0zRrzqanHokHI1IlJasJ1HZKNPgisLkYWkNfNtBQWdcQQq4TE29Eg8we1tSv IZdA== 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=sIIYwVzr9MZ7XYUxbhtiYcNWGt28tWA4X7MM75B6zyY=; b=YsktnUDrtg6cCQ/dJ5l2sCNECMAe56niRJMp8Hy2BV7n+SUjE2GzJhg6QNo+5kBj3m oy0zRwo6u0fRkok0p0R6urKIf+Ff58CCC9CFS2R6LC/2VP4VVdYjSkW9K2iinjwjNpWB bUjIAtqQJK9i7pvfPn5CQT9gBh+wVuRRKeObDghykDaPbDPgN5R/oMlXFuQV2SGn78B1 SG6+QobBac0ZSosH+WGEQKIBqfFru8UHw9Y5A+xZMn2lNhwxGE1IJJ8pG3Ns3OMG1OFd iOiJxjd/5NaKbbamq4vjw1nl+minTlRSHHnflfAnxVSgbsMCbVgeM7TOKqaLRAhCx2KM s+/w== X-Gm-Message-State: AOAM533CCU5lUBoDRiKRVr5HxjnSCNkgECJwArQtC4qUMaRBFo+EYvWJ zkRhQAtk4DjgDUcv8r4XTa8V9w== X-Received: by 2002:a17:90a:8585:: with SMTP id m5mr4046253pjn.69.1602855346208; Fri, 16 Oct 2020 06:35:46 -0700 (PDT) Received: from [192.168.1.134] ([66.219.217.173]) by smtp.gmail.com with ESMTPSA id l199sm3035423pfd.73.2020.10.16.06.35.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 16 Oct 2020 06:35:45 -0700 (PDT) Subject: Re: [PATCH 5/5] task_work: use TIF_NOTIFY_SIGNAL if available To: Thomas Gleixner , Oleg Nesterov Cc: linux-kernel@vger.kernel.org, io-uring@vger.kernel.org, peterz@infradead.org, Roman Gershman 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> From: Jens Axboe Message-ID: Date: Fri, 16 Oct 2020 07:35:44 -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: <871rhyv7a8.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/16/20 3:39 AM, Thomas Gleixner wrote: > On Fri, Oct 16 2020 at 11:00, Thomas Gleixner wrote: >> On Thu, Oct 15 2020 at 12:39, Jens Axboe wrote: >>> On 10/15/20 9:49 AM, Oleg Nesterov wrote: >> So if you change #2 to: >> >> Drop the CONFIG_GENERIC_ENTRY dependency, make _all_ architectures >> use TIF_NOTIFY_SIGNAL and clean up the jobctl and whatever related >> mess. >> >> and actually act apon it, then I'm fine with that approach. > > Which makes me rethink my view on Olegs suggestion: > >>>> You can simply nack the patch which adds TIF_NOTIFY_SIGNAL to >>>> arch/xxx/include/asm/thread_info.h. > > That's a truly great suggestion: > > X86 is going to have that TIF bit once the above is available. > > I'm happy to help with the merge logistics of this. Not really following this email... But it seems to me that you're happy with approach 2, so I'll do the following: - Get rid of the CONFIG_GENERIC_ENTRY dependency for TIF_NOTIFY_SIGNAL - Respin the arch additions and cleanups on top of that again And hopefully we'll have something mergeable at that point. Once we have this series merged somewhere (would be great if you could carry it), I'll be talking to arch folks on the rest. Once archs have taken the necessary bits, I'll be posting the third and final series which is the cleanups that are currently sitting on top of the arch support. -- Jens Axboe