Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp492474pxu; Thu, 15 Oct 2020 08:55:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwxWss7YgOqrszq1yrSnXJcB1TENdzJDIv23lYNgWxH6XmX+J51j7VNy/ibM8U1yql4T/Cj X-Received: by 2002:a17:906:647:: with SMTP id t7mr5277977ejb.428.1602777301666; Thu, 15 Oct 2020 08:55:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602777301; cv=none; d=google.com; s=arc-20160816; b=VnTFwJjTAOECitQyJ1FLvDP32NdV+xrWWOLnfxhZo/C8JeNoudNj7YtC4+fI4WUUUb xm7A14xZMMD/dDLW2A9cYPYyWnjikOp6ixqhLj4GjFx4ZVdXEzHMK3wEgjouEcuev7S8 KQm599mqMwj7OSjpoxIIua5BTORTAK+tzUOVxeEJnD7NWst9LMoync7FLqHudyz/4A5B H2FYKPOiaiTypA0/RmqP7k2h7Xv608Y3WWBdGHkkICduCrXMu3N1lkO8Z2PZd82W9MJx j8Vz4pkODG+RJnDVODfv011QZH984hlJM9vK9LP3mIFJFzy3hc4zcUNs5jqTUjrpWZm7 QTjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=+KBQJxnzY9IJB92xwhkX7sURjnYMLbV8YEBAs4xU9Tg=; b=vouSzCYja2Y3wWNySXo4MoOc4H5+Jgf/eIgK8OzVDHrnQZ3JfS6nzUO/xwT4IBLttF yic+WfpPKDbTfY5uNUOSi2q8xe0+uu9adw8sqm3t1FTmmCQ22GDrUDF1EiJtO6iz/qID HPDgX7lsD6sP55vm4Fe3BslEkmrhN1IgmkccJJeF950nhSJuZypYV/xlyOtQDYLZ33nX IbLanhdTE4sBRjIrIwJszOGyrprYve3VFkRQdgEGC7MJ2fmOvbfMKv0WPxLHMRKNL/l/ ygw+KjdM+o6UWzoN1nPhRA0bavYpXrZ0LX7s6OZgfqRrqPsXQD0i4Guaj6xfiL33LyAv piyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=iLvFBA73; 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=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d18si2421703ejz.660.2020.10.15.08.54.26; Thu, 15 Oct 2020 08:55:01 -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=@redhat.com header.s=mimecast20190719 header.b=iLvFBA73; 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=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389834AbgJOPuB (ORCPT + 99 others); Thu, 15 Oct 2020 11:50:01 -0400 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:59580 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389813AbgJOPuB (ORCPT ); Thu, 15 Oct 2020 11:50:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1602777000; 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=+KBQJxnzY9IJB92xwhkX7sURjnYMLbV8YEBAs4xU9Tg=; b=iLvFBA73I2HiyCmNrrNj6LUrdfHAuCV5WtaUOtWUD/+IB4mbQtP2r9G9PTrBS1riMCIvun FpLysMLV+sDnilEaXIci/+vQiGySE1BV3SsxPDB4kkWL3nxy6K+UilZk9kg4FSzOMlAApI zU0sUhaeg1SQCO75HIJN3gGwJnwszvk= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-194-sYJxVKzVPKWhB_A4sNAozQ-1; Thu, 15 Oct 2020 11:49:58 -0400 X-MC-Unique: sYJxVKzVPKWhB_A4sNAozQ-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 166C8EC50A; Thu, 15 Oct 2020 15:49:57 +0000 (UTC) Received: from dhcp-27-174.brq.redhat.com (unknown [10.40.193.8]) by smtp.corp.redhat.com (Postfix) with SMTP id 4F93376670; Thu, 15 Oct 2020 15:49:55 +0000 (UTC) Received: by dhcp-27-174.brq.redhat.com (nbSMTP-1.00) for uid 1000 oleg@redhat.com; Thu, 15 Oct 2020 17:49:56 +0200 (CEST) Date: Thu, 15 Oct 2020 17:49:54 +0200 From: Oleg Nesterov To: Jens Axboe Cc: linux-kernel@vger.kernel.org, io-uring@vger.kernel.org, peterz@infradead.org, tglx@linutronix.de, Roman Gershman Subject: Re: [PATCH 5/5] task_work: use TIF_NOTIFY_SIGNAL if available Message-ID: <20201015154953.GM24156@redhat.com> References: <20201015131701.511523-1-axboe@kernel.dk> <20201015131701.511523-6-axboe@kernel.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201015131701.511523-6-axboe@kernel.dk> User-Agent: Mutt/1.5.24 (2015-08-30) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Oleg.