Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp759134pxu; Thu, 15 Oct 2020 16:11:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxrjqQ+Bta16VOzKmXcdajDRibfXrqXbxkVZRRUfggyEEK16zhEFwuf4l7T2dO+mIZSQO3L X-Received: by 2002:a50:ec88:: with SMTP id e8mr784475edr.277.1602803483279; Thu, 15 Oct 2020 16:11:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602803483; cv=none; d=google.com; s=arc-20160816; b=Mm/kZfNIHJDpXteQgYumRlGVh15Ju6k8J+wLrmZ9vpCkjP02vH00e/B1ebwXADqd15 fPUqk0DGrNmQd7RAE4zei2mX1Y4sUrGhPo6FKa9anjMlA9y0AUwrCyk3vh/PC21TO324 dzVekYHPAlLJfVPon66XR7aODPO1ehH1WKI0AyMDNG+Dxkd5r7jYS+alorNNAdjKHhA1 3tgrAni034Aab7+TZo6l2doyTgqfdQdwKrVcEabu+An8ChvTfu46LGb1u+0c70HGs0c9 OXrvyKqHOlp76ufj6b6d70thWdLkTSJI41RNMjnflYTldV9c7SQA42SFBBcmBDexQJhE EuKA== 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=2eYPjnhMkoKRh274ZnfDYxEkN/cASuQVhfeqtpp/wFo=; b=mOn8dQ6tRPav5M0SLL+HfGf4lkpRdB93GEAks6uSaZomKCp7jXsEtNAbFvi7MKpfkL IViHgPebOv2b3C7m8fjE1ZpQixiQDsnvH03q6Ku6EgIFAlZm2txxuTboyCGMIu63Wc39 cnPdJY17NXtalaGAMnrkGN+yLwpqxC5MejqrzsVSj4MufyMGti+PoeZ3scpUsM73mal2 nStghYkAn2DnCum+N6FZmGK4t2kYV8PGPnL4WdUXoowaG0c4eNJoHUwjvHg1IFA4qJxu Tie8Nn1Jx7I/vURXIXxilug3rXh6jG9DuxK/EYIECglffwogPEzqRUiwhXipEisrlupu c4aw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=JeKQa4xU; 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 ng3si331530ejb.345.2020.10.15.16.11.00; Thu, 15 Oct 2020 16:11:23 -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=JeKQa4xU; 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 S2388821AbgJOSjf (ORCPT + 99 others); Thu, 15 Oct 2020 14:39:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39624 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731154AbgJOSje (ORCPT ); Thu, 15 Oct 2020 14:39:34 -0400 Received: from mail-il1-x141.google.com (mail-il1-x141.google.com [IPv6:2607:f8b0:4864:20::141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A5C9C0613D2 for ; Thu, 15 Oct 2020 11:39:33 -0700 (PDT) Received: by mail-il1-x141.google.com with SMTP id z2so4134740ilh.11 for ; Thu, 15 Oct 2020 11:39:33 -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=2eYPjnhMkoKRh274ZnfDYxEkN/cASuQVhfeqtpp/wFo=; b=JeKQa4xUyeVsPYFmaCn7c933kxLOMPieHLwq4xeMoEO/okGMXehToHvd+0ig7XaIgP fHneyQ60wBUcEpxPUpTELURgj5bQIelk0vJP0TgRDXW95Vd8u5nZkWrMtNgvymK2D3DB 7wfN4oY2FqabCqGYCmGCUeKOhtK4TzCIlswIXurPRrYIKYwZH7CYwdNoMmCoICJcSgsf /meK+N6OQ4aCTmXZRGkygQvKXvUTKx8lVeno6q4vHbW7SAbYuof8VFNhuZloauqDFQWX WhveX7ppMApDxhOhALQer1AszJqIBPle/oM35KL+bH/UNuLDQ1qiwNLLPRkowndfDMnt 9vPQ== 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=2eYPjnhMkoKRh274ZnfDYxEkN/cASuQVhfeqtpp/wFo=; b=pheffrwjxV1B2/t2nIhUdzTY4YNNgLXQ98tymn+6oeiVHhHlRa9MfGoWbJH2QQqEtR UwCsIYXQk5JrCBs723bVs53FvHlKlDNMuKlHDImx42TLhI3n/iceKuC35RmhL8SVo8wv MX492Cd01wgNfh88fq8gwn4sBJ2gBPOb2/kOgSkK6iExkYCNTqdWHUhMSOC9XoBGbsvR GLrhEDueji2etEuS/9eSworNMZYrgP+UzkZ1Bqaj1fjwZd4xTb/fvPzeYl72HBM53oX1 DSz4IaIgv2pXV5U5cq4UaDFooQlsS6qPODB3bCw5zenEwTy9Cvc8eeQed8XokXKD1pXR FCDQ== X-Gm-Message-State: AOAM532a+m5EzVseXPfDiR3e5HMcOvSWpVJ0kRPkn3M+X+lTIHzP3/pp 5l5RP5/IPFjGBqFnEiA2nyUPLw== X-Received: by 2002:a92:cd42:: with SMTP id v2mr3868619ilq.65.1602787172427; Thu, 15 Oct 2020 11:39:32 -0700 (PDT) Received: from [192.168.1.30] ([65.144.74.34]) by smtp.gmail.com with ESMTPSA id o17sm3391972ila.47.2020.10.15.11.39.31 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 15 Oct 2020 11:39:31 -0700 (PDT) Subject: Re: [PATCH 5/5] task_work: use TIF_NOTIFY_SIGNAL if available To: Oleg Nesterov Cc: linux-kernel@vger.kernel.org, io-uring@vger.kernel.org, peterz@infradead.org, tglx@linutronix.de, Roman Gershman References: <20201015131701.511523-1-axboe@kernel.dk> <20201015131701.511523-6-axboe@kernel.dk> <20201015154953.GM24156@redhat.com> From: Jens Axboe Message-ID: Date: Thu, 15 Oct 2020 12:39:31 -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: <20201015154953.GM24156@redhat.com> 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 9:49 AM, Oleg Nesterov wrote: > On 10/15, Jens Axboe wrote: >> >> Reviewed-by: Oleg Nesterov > > Yes, but ... > >> +static void task_work_notify_signal(struct task_struct *task) >> +{ >> +#if defined(CONFIG_GENERIC_ENTRY) && defined(TIF_NOTIFY_SIGNAL) > > as long as defined(CONFIG_GENERIC_ENTRY) goes away ;) > > Thomas, I strongly, strongly disagree with you. But even if you are right > and only CONFIG_GENERIC_ENTRY arches should use TIF_NOTIFY_SIGNAL, why should > this series check CONFIG_GENERIC_ENTRY ? > > You can simply nack the patch which adds TIF_NOTIFY_SIGNAL to > arch/xxx/include/asm/thread_info.h. This seems to be the biggest area of contention right now. Just to summarize, we have two options: 1) We leave the CONFIG_GENERIC_ENTRY requirement, which means that the rest of the cleanups otherwise enabled by this series will not be able to move forward until the very last arch is converted to the generic entry code. 2) We go back to NOT having the CONFIG_GENERIC_ENTRY requirement, and archs can easily opt-in to TIF_NOTIFY_SIGNAL independently of switching to the generic entry code. I understand Thomas's reasoning in wanting to push archs towards the generic entry code, and I fully support that. However, it does seem like the road paved by #1 is long and potentially neverending, which would leave us with never being able to kill the various bits of code that we otherwise would be able to. Thomas, I do agree with Oleg on this one, I think we can make quicker progress on cleanups with option #2. This isn't really going to hinder any arch conversion to the generic entry code, as arch patches would be funeled through the arch trees anyway. Thomas? -- Jens Axboe