aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/dev-replace.c
diff options
context:
space:
mode:
authorPeter Zijlstra <[email protected]>2020-11-17 11:14:51 +0000
committerPeter Zijlstra <[email protected]>2020-11-19 10:25:45 +0000
commit1293771e4353c148d5f6908fb32d1c1cfd653e47 (patch)
treeb1a0a633c573295bf4430264448e9c8ecee5e02f /fs/btrfs/dev-replace.c
parentsched/core: Add missing completion for affine_move_task() waiters (diff)
downloadkernel-1293771e4353c148d5f6908fb32d1c1cfd653e47.tar.gz
kernel-1293771e4353c148d5f6908fb32d1c1cfd653e47.zip
sched: Fix migration_cpu_stop() WARN
Oleksandr reported hitting the WARN in the 'task_rq(p) != rq' branch of migration_cpu_stop(). Valentin noted that using cpu_of(rq) in that case is just plain wrong to begin with, since per the earlier branch that isn't the actual CPU of the task. Replace both instances of is_cpu_allowed() by a direct p->cpus_mask test using task_cpu(). Reported-by: Oleksandr Natalenko <[email protected]> Debugged-by: Valentin Schneider <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions