Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp1222964lqs; Fri, 14 Jun 2024 22:51:52 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUuPYC+ZslXjE45DAZb6CDcDdER3TVnHkFLKEx2j+/6S4Dq1EjCWRpFwZpUPxbUQ6jyH9UXvWQAuGJo6S8pAXOhXZd9o++9n+OQUPZ2zA== X-Google-Smtp-Source: AGHT+IHKtpQmLALQiuD9HTLKfqTLuHY5HWSLw4KF8l9UNASd1SexccnQ6i6R8Obh7095JfkCpeBx X-Received: by 2002:a17:90a:608:b0:2c2:dfc3:10b6 with SMTP id 98e67ed59e1d1-2c4db44b84emr4705203a91.24.1718430711929; Fri, 14 Jun 2024 22:51:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718430711; cv=pass; d=google.com; s=arc-20160816; b=GwFRY//dMmoZx/CNrshDTNt1RmFwpBPxBwSpQ8dqHRGbsfYoRkuCkNAD6A5rlIwwpb y2mASgidqPb3HAV8GGcswVU5CDhXV46ic5rQcLC1J1R5NmiVGhBoOjpM+x8D2rj4om8P ZA70o+tLIa3yE+ZoZgCTZi3a+W+Y63ZacWhGx5HB+u62YzZG3EdTi5rLzZDDCl5gERuM kIctvSPQ0fhVQ1oKx5i1dK6mPExDCMs8thMy6wD2uiDFE+qaVw+MZrtRYchYE3JVH9DW FXrxbr46OlNqOQs6wY1nDNo0/Ul4Kt518xyxoETdE56k1aohvgs0Fa4wKGvibCRj1WdO uoxw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=JLTvDV1lNU9XfbpR4Y9KnupD1/9SE9kaeQL+4/ORc5U=; fh=G4FFSJd6CSxc+T4H7vsajHHHsOkBtz8Mkgjx5h2rpNs=; b=p3IXwYpHcGIPvo4IVjCK1DNDQRZyCcjIcf6KvJjETN4PaJAfOEG/vKlutu7w956LfZ EZsHQANU87qBn5/MtglF3b9rH8TOXnY36z+5JXoZBc0SFCYeytSx2v7QJ09eMxX77Hj6 kbo5pIPlKV3dvxOq970ff1NpCoL5F0P/zwCpPsmLKIs+qDMqjpRLZRpo3FI84+1q9izJ Nz5hzsjlZVgdpCCEmSSVy13fFyoYe4hK4eX+PvI/V1ko4N2Oj7DLtGIhCJJcEE6dL6eS CTlthpGqIGmLazg4+pLrFCAci4Vag6B9plqPmTWhLQgDPgYxmoIqy1Gcse61AMGcjdSJ SSiQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=BG9EAzL4; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-215637-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-215637-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2c4c47b045dsi4984148a91.174.2024.06.14.22.51.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jun 2024 22:51:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-215637-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=BG9EAzL4; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-215637-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-215637-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 8AF67B2279E for ; Sat, 15 Jun 2024 01:43:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8AE1F5256; Sat, 15 Jun 2024 01:43:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="BG9EAzL4" Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 956D94683; Sat, 15 Jun 2024 01:43:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=90.155.50.34 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718415790; cv=none; b=hyTX2bs2b2s30EIKJQ5nivWGUwQM3lJzBqeSb+L0o1GhXCXQZbob2FJMRrNHWMZi6gwj7UISuocwva1ynsGRkO+i2K53zoCMdj489uROOC5ceXEIKxeHu37XpGnuJtqGKz1WzjDSNl7N6z/PhGpLtrxgylWJNt3DN5AYsYH94Vo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718415790; c=relaxed/simple; bh=8Zinys3yZee54O7Jb/EuJVXbITn3qoh6d5kKIUE3bw8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=eo63CUpaqKlLzdiuoLV8qrctK5SYT+HMCHHPVCQzSqPwagxRC2S5mclt8QPE2UT7DWuJpVCTHmcZMz5mSNO7fLrZ/qF3hxuU2eOrXrDdT+zeGzZ/G+jO+dgFZmNSepf1j4DaKN5mNFoKF14xjSc/t4A/j/IYjqnO5BicX6eEHAk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=BG9EAzL4; arc=none smtp.client-ip=90.155.50.34 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=JLTvDV1lNU9XfbpR4Y9KnupD1/9SE9kaeQL+4/ORc5U=; b=BG9EAzL4aNe5yXJ8hUlpJr41e2 JLmkcwHOSWQpGdf0kCw978PqipCPe5wQqcQYPoTGj5qdH2BjLO25E0I5Xbmuxh7ras6sH5320jBTm 3ccSVJvWPlOy+8vvwHxDkulKaq+0SdGAZWJst1q9monnCJS8aZ28oGoMDGTo9Tl+bgTbuHmTvuO2P TI+IYMfifnbJQlH8/a2+n/YaYq26qvQgQ17tUfDlS6sfPw6xtPsBDwmIN9QHzpgcZspjz1TcJpyVh OniE5Iu5C4JJkjb2MKxFjs0W+59zRyHx0N5qBEUaRjm0PVow6X91bGKmnKok4GdGkxX44dC78EvW0 vYM65rEw==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.97.1 #2 (Red Hat Linux)) id 1sIIRV-0000000HUXc-1Tx0; Sat, 15 Jun 2024 01:43:00 +0000 Received: by noisy.programming.kicks-ass.net (Postfix, from userid 1000) id E4982300886; Sat, 15 Jun 2024 03:42:56 +0200 (CEST) Date: Sat, 15 Jun 2024 03:42:56 +0200 From: Peter Zijlstra To: Vincent Guittot Cc: K Prateek Nayak , linux-kernel@vger.kernel.org, "Gautham R. Shenoy" , Richard Henderson , Ivan Kokshaysky , Matt Turner , Russell King , Guo Ren , Michal Simek , Dinh Nguyen , Jonas Bonn , Stefan Kristiansson , Stafford Horne , "James E.J. Bottomley" , Helge Deller , Michael Ellerman , Nicholas Piggin , Christophe Leroy , "Naveen N. Rao" , Yoshinori Sato , Rich Felker , John Paul Adrian Glaubitz , "David S. Miller" , Andreas Larsson , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" , "Rafael J. Wysocki" , Daniel Lezcano , Juri Lelli , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira , Valentin Schneider , Andrew Donnellan , Benjamin Gray , Frederic Weisbecker , Xin Li , Kees Cook , Rick Edgecombe , Tony Battersby , Bjorn Helgaas , Brian Gerst , Leonardo Bras , Imran Khan , "Paul E. McKenney" , Rik van Riel , Tim Chen , David Vernet , Julia Lawall , linux-alpha@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-csky@vger.kernel.org, linux-openrisc@vger.kernel.org, linux-parisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org, linux-pm@vger.kernel.org, x86@kernel.org Subject: Re: [PATCH v2 00/14] Introducing TIF_NOTIFY_IPI flag Message-ID: <20240615014256.GQ8774@noisy.programming.kicks-ass.net> References: <20240613181613.4329-1-kprateek.nayak@amd.com> <20240614092801.GL8774@noisy.programming.kicks-ass.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Fri, Jun 14, 2024 at 12:48:37PM +0200, Vincent Guittot wrote: > The main problem is that need_resched becomes somewhat meaningless > because it doesn't only mean "I need to resched a task" and we have > to add more tests around even for those not using polling The converse problem is that you're adding a bunch of atomic ops that might be avoided. It might now need to set both the RESCHED and IPI flags -- and clear them again.