# Re: \[PATCH 4/6\] sched: Add get\_current\_state()

- From: Will Deacon \<will@kernel.org\>
- Date: 2021-06-02 15:02:30 
- List: linux-pm
- Page: https://ratatoskr.run/linux-pm/2021/06/207001
- Thread: https://ratatoskr.run/linux-block/2021/06/206979/t.md

```text
On Wed, Jun 02, 2021 at 03:12:29PM +0200, Peter Zijlstra wrote:
> Remove yet another few p->state accesses.
> 
> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
> ---
>  block/blk-mq.c        |    2 +-
>  include/linux/sched.h |    2 ++
>  kernel/freezer.c      |    2 +-
>  kernel/sched/core.c   |    6 +++---
>  4 files changed, 7 insertions(+), 5 deletions(-)

I think you can include kernel/kcsan/report.c here too.

With that:

Acked-by: Will Deacon <will@kernel.org>

Will
```
