summaryrefslogtreecommitdiff
path: root/block/blk-mq.c
diff options
context:
space:
mode:
authorPeter Zijlstra <peterz@infradead.org>2021-06-11 10:28:14 +0200
committerPeter Zijlstra <peterz@infradead.org>2021-06-18 11:43:08 +0200
commitd6c23bb3a2ad2f8f7dd46292b8bc54d27f2fb3f1 (patch)
treed555f1e520de852c69089be5b1d5fe8245ec4244 /block/blk-mq.c
parent3ba9f93b12361e005dd65fcc8072b42e3189f4f4 (diff)
sched: Add get_current_state()
Remove yet another few p->state accesses. Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Acked-by: Will Deacon <will@kernel.org> Link: https://lore.kernel.org/r/20210611082838.347475156@infradead.org
Diffstat (limited to 'block/blk-mq.c')
-rw-r--r--block/blk-mq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk-mq.c b/block/blk-mq.c
index 655db5fb46d0..56270bb06365 100644
--- a/block/blk-mq.c
+++ b/block/blk-mq.c
@@ -3910,7 +3910,7 @@ int blk_poll(struct request_queue *q, blk_qc_t cookie, bool spin)
hctx->poll_considered++;
- state = current->state;
+ state = get_current_state();
do {
int ret;