diff options
| -rw-r--r-- | kernel/workqueue.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/kernel/workqueue.c b/kernel/workqueue.c index 129e4c3452ee..a3021d63f62d 100644 --- a/kernel/workqueue.c +++ b/kernel/workqueue.c | |||
| @@ -2020,13 +2020,8 @@ __acquires(&pool->lock) | |||
| 2020 | 2020 | ||
| 2021 | lockdep_copy_map(&lockdep_map, &work->lockdep_map); | 2021 | lockdep_copy_map(&lockdep_map, &work->lockdep_map); |
| 2022 | #endif | 2022 | #endif |
| 2023 | /* | 2023 | /* ensure we're on the correct CPU */ |
| 2024 | * Ensure we're on the correct CPU. DISASSOCIATED test is | 2024 | WARN_ON_ONCE(!(pool->flags & POOL_DISASSOCIATED) && |
| 2025 | * necessary to avoid spurious warnings from rescuers servicing the | ||
| 2026 | * unbound or a disassociated pool. | ||
| 2027 | */ | ||
| 2028 | WARN_ON_ONCE(!(worker->flags & WORKER_UNBOUND) && | ||
| 2029 | !(pool->flags & POOL_DISASSOCIATED) && | ||
| 2030 | raw_smp_processor_id() != pool->cpu); | 2025 | raw_smp_processor_id() != pool->cpu); |
| 2031 | 2026 | ||
| 2032 | /* | 2027 | /* |
