From: Peter Zijlstra <peterz@infradead•org>
To: Vincent Guittot <vincent.guittot@linaro•org>
Cc: Juri Lelli <juri.lelli@redhat•com>, Rich Felker <dalias@libc•org>,
Andreas Larsson <andreas@gaisler•com>,
Dave Hansen <dave.hansen@linux•intel.com>,
x86@kernel•org,
"James E.J. Bottomley" <James.Bottomley@hansenpartnership•com>,
linux-openrisc@vger•kernel.org, Guo Ren <guoren@kernel•org>,
linux-csky@vger•kernel.org, David Vernet <void@manifault•com>,
"H. Peter Anvin" <hpa@zytor•com>, Borislav Petkov <bp@alien8•de>,
Thomas Gleixner <tglx@linutronix•de>,
Kees Cook <keescook@chromium•org>,
Jonas Bonn <jonas@southpole•se>,
Valentin Schneider <vschneid@redhat•com>,
Yoshinori Sato <ysato@users•sourceforge.jp>,
linux-sh@vger•kernel.org, Helge Deller <deller@gmx•de>,
"Rafael J. Wysocki" <rafael@kernel•org>,
Russell King <linux@armlinux•org.uk>,
Christophe Leroy <christophe.leroy@csgroup•eu>,
Tony Battersby <tonyb@cybernetics•com>,
Ingo Molnar <mingo@redhat•com>,
sparclinux@vger•kernel.org, Mel Gorman <mgorman@suse•de>,
"Naveen N. Rao" <naveen.n.rao@linux•ibm.com>,
Matt Turner <mattst88@gmail•com>,
Benjamin Gray <bgray@linux•ibm.com>,
Andrew Donnellan <ajd@linux•ibm.com>,
"Paul E. McKenney" <paulmck@kernel•org>,
Rik van Riel <riel@surriel•com>, Brian Gerst <brgerst@gmail•com>,
Frederic Weisbecker <frederic@kernel•org>,
Xin Li <xin3.li@intel•com>,
Richard Henderson <richard.henderson@linaro•org>,
linuxppc-dev@lists•ozlabs.org,
Nicholas Piggin <npiggin@gmail•com>,
Stefan Kristiansson <stefan.kristiansson@saunalahti•fi>,
Ivan Kokshaysky <ink@jurassic•park.msu.ru>,
Steven Rostedt <rostedt@goodmis•org>,
John Paul Adrian Glaubitz <glaubitz@physik•fu-berlin.de>,
Bjorn Helgaas <bhelgaas@google•com>,
Stafford Horne <shorne@gmail•com>,
Dietmar Eggemann <dietmar.eggemann@arm•com>,
linux-arm-kernel@lists•infradead.org,
Ben Segall <bsegall@google•com>, Michal Simek <monstr@monstr•eu>,
Daniel Lezcano <daniel.lezcano@linaro•org>,
linux-parisc@vger•kernel.org,
Tim Chen <tim.c.chen@linux•intel.com>,
linux-pm@vger•kernel.org, linux-kernel@vger•kernel.org,
Julia Lawall <julia.lawall@inria•fr>,
Dinh Nguyen <dinguyen@kernel•org>,
Leonardo Bras <leobras@redhat•com>,
"Gautham R. Shenoy" <gautham.shenoy@amd•com>,
linux-alpha@vger•kernel.org, Imran Khan <imran.f.khan@oracle•com>,
K Prateek Nayak <kprateek.nayak@amd•com>,
Rick Edgecombe <rick.p.edgecombe@intel•com>,
Daniel Bristot de Oliveira <bristot@redhat•com>,
"David S. Miller" <davem@davemloft•net>
Subject: Re: [PATCH v2 00/14] Introducing TIF_NOTIFY_IPI flag
Date: Sat, 15 Jun 2024 03:42:56 +0200 [thread overview]
Message-ID: <20240615014256.GQ8774@noisy.programming.kicks-ass.net> (raw)
In-Reply-To: <CAKfTPtBTxhbmh=605TJ9sRw-nFu6w-KY7QpAxRUh5AjhQWa2ig@mail.gmail.com>
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.
next prev parent reply other threads:[~2024-06-15 8:58 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-13 18:15 [PATCH v2 00/14] Introducing TIF_NOTIFY_IPI flag K Prateek Nayak
2024-06-13 18:16 ` [PATCH v2 01/14] thread_info: Add helpers to test and clear TIF_NOTIFY_IPI K Prateek Nayak
2024-06-13 18:16 ` [PATCH v2 02/14] sched: Define a need_resched_or_ipi() helper and use it treewide K Prateek Nayak
2024-06-13 18:16 ` [PATCH v2 03/14] sched/core: Use TIF_NOTIFY_IPI to notify an idle CPU in TIF_POLLING mode of pending IPI K Prateek Nayak
2024-06-13 18:16 ` [PATCH v2 08/14] powerpc/thread_info: Introduce TIF_NOTIFY_IPI flag K Prateek Nayak
2024-06-14 9:28 ` [PATCH v2 00/14] Introducing " Peter Zijlstra
2024-06-14 10:48 ` Vincent Guittot
2024-06-14 16:31 ` Chen Yu
2024-06-17 8:33 ` K Prateek Nayak
2024-06-18 7:49 ` Chen Yu
2024-06-18 18:33 ` K Prateek Nayak
2024-06-20 7:30 ` Chen Yu
2024-06-15 1:28 ` Peter Zijlstra
2024-06-15 1:45 ` Peter Zijlstra
2024-06-16 14:57 ` Vincent Guittot
2024-06-17 5:52 ` K Prateek Nayak
2024-06-15 1:42 ` Peter Zijlstra [this message]
2024-06-15 14:26 ` Russell King (Oracle)
2024-06-17 4:35 ` K Prateek Nayak
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240615014256.GQ8774@noisy.programming.kicks-ass.net \
--to=peterz@infradead$(echo .)org \
--cc=James.Bottomley@hansenpartnership$(echo .)com \
--cc=ajd@linux$(echo .)ibm.com \
--cc=andreas@gaisler$(echo .)com \
--cc=bgray@linux$(echo .)ibm.com \
--cc=bhelgaas@google$(echo .)com \
--cc=bp@alien8$(echo .)de \
--cc=brgerst@gmail$(echo .)com \
--cc=bristot@redhat$(echo .)com \
--cc=bsegall@google$(echo .)com \
--cc=christophe.leroy@csgroup$(echo .)eu \
--cc=dalias@libc$(echo .)org \
--cc=daniel.lezcano@linaro$(echo .)org \
--cc=dave.hansen@linux$(echo .)intel.com \
--cc=davem@davemloft$(echo .)net \
--cc=deller@gmx$(echo .)de \
--cc=dietmar.eggemann@arm$(echo .)com \
--cc=dinguyen@kernel$(echo .)org \
--cc=frederic@kernel$(echo .)org \
--cc=gautham.shenoy@amd$(echo .)com \
--cc=glaubitz@physik$(echo .)fu-berlin.de \
--cc=guoren@kernel$(echo .)org \
--cc=hpa@zytor$(echo .)com \
--cc=imran.f.khan@oracle$(echo .)com \
--cc=ink@jurassic$(echo .)park.msu.ru \
--cc=jonas@southpole$(echo .)se \
--cc=julia.lawall@inria$(echo .)fr \
--cc=juri.lelli@redhat$(echo .)com \
--cc=keescook@chromium$(echo .)org \
--cc=kprateek.nayak@amd$(echo .)com \
--cc=leobras@redhat$(echo .)com \
--cc=linux-alpha@vger$(echo .)kernel.org \
--cc=linux-arm-kernel@lists$(echo .)infradead.org \
--cc=linux-csky@vger$(echo .)kernel.org \
--cc=linux-kernel@vger$(echo .)kernel.org \
--cc=linux-openrisc@vger$(echo .)kernel.org \
--cc=linux-parisc@vger$(echo .)kernel.org \
--cc=linux-pm@vger$(echo .)kernel.org \
--cc=linux-sh@vger$(echo .)kernel.org \
--cc=linux@armlinux$(echo .)org.uk \
--cc=linuxppc-dev@lists$(echo .)ozlabs.org \
--cc=mattst88@gmail$(echo .)com \
--cc=mgorman@suse$(echo .)de \
--cc=mingo@redhat$(echo .)com \
--cc=monstr@monstr$(echo .)eu \
--cc=naveen.n.rao@linux$(echo .)ibm.com \
--cc=npiggin@gmail$(echo .)com \
--cc=paulmck@kernel$(echo .)org \
--cc=rafael@kernel$(echo .)org \
--cc=richard.henderson@linaro$(echo .)org \
--cc=rick.p.edgecombe@intel$(echo .)com \
--cc=riel@surriel$(echo .)com \
--cc=rostedt@goodmis$(echo .)org \
--cc=shorne@gmail$(echo .)com \
--cc=sparclinux@vger$(echo .)kernel.org \
--cc=stefan.kristiansson@saunalahti$(echo .)fi \
--cc=tglx@linutronix$(echo .)de \
--cc=tim.c.chen@linux$(echo .)intel.com \
--cc=tonyb@cybernetics$(echo .)com \
--cc=vincent.guittot@linaro$(echo .)org \
--cc=void@manifault$(echo .)com \
--cc=vschneid@redhat$(echo .)com \
--cc=x86@kernel$(echo .)org \
--cc=xin3.li@intel$(echo .)com \
--cc=ysato@users$(echo .)sourceforge.jp \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox