Thread (30 messages) 30 messages, 8 authors, 2021-06-18

Re: [PATCH 2/6] sched: Introduce task_is_running()

From: Davidlohr Bueso <dave@stgolabs.net>
Date: 2021-06-02 23:16:04
Also in: cgroups, dm-devel, kvm, linux-block, linux-fsdevel, linux-mm, linux-perf-users, linux-usb, lkml, netdev, rcu

On Wed, 02 Jun 2021, Peter Zijlstra wrote:
Replace a bunch of 'p->state == TASK_RUNNING' with a new helper:
task_is_running(p).

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Davidlohr Bueso

But afaict ....
---
arch/x86/kernel/process.c |    4 ++--
block/blk-mq.c            |    2 +-
include/linux/sched.h     |    2 ++
kernel/locking/lockdep.c  |    2 +-
kernel/rcu/tree_plugin.h  |    2 +-
kernel/sched/core.c       |    6 +++---
kernel/sched/stats.h      |    2 +-
kernel/signal.c           |    2 +-
kernel/softirq.c          |    3 +--
mm/compaction.c           |    2 +-
10 files changed, 14 insertions(+), 13 deletions(-)
there are also (on top of the already mentioned arch/):

kernel/kcsan/report.c:  const bool is_running = current->state == TASK_RUNNING;
kernel/locking/lockdep.c:       if (p->state == TASK_RUNNING && p != current)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help