diff options
Diffstat (limited to 'kernel/workqueue.c')
| -rw-r--r-- | kernel/workqueue.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/kernel/workqueue.c b/kernel/workqueue.c index 30acdb74cc23..90db1bd1a978 100644 --- a/kernel/workqueue.c +++ b/kernel/workqueue.c | |||
| @@ -2064,7 +2064,7 @@ static void insert_wq_barrier(struct cpu_workqueue_struct *cwq, | |||
| 2064 | * checks and call back into the fixup functions where we | 2064 | * checks and call back into the fixup functions where we |
| 2065 | * might deadlock. | 2065 | * might deadlock. |
| 2066 | */ | 2066 | */ |
| 2067 | INIT_WORK_ON_STACK(&barr->work, wq_barrier_func); | 2067 | INIT_WORK_ONSTACK(&barr->work, wq_barrier_func); |
| 2068 | __set_bit(WORK_STRUCT_PENDING_BIT, work_data_bits(&barr->work)); | 2068 | __set_bit(WORK_STRUCT_PENDING_BIT, work_data_bits(&barr->work)); |
| 2069 | init_completion(&barr->done); | 2069 | init_completion(&barr->done); |
| 2070 | 2070 | ||
| @@ -2791,7 +2791,9 @@ static int alloc_cwqs(struct workqueue_struct *wq) | |||
| 2791 | } | 2791 | } |
| 2792 | } | 2792 | } |
| 2793 | 2793 | ||
| 2794 | /* just in case, make sure it's actually aligned */ | 2794 | /* just in case, make sure it's actually aligned |
| 2795 | * - this is affected by PERCPU() alignment in vmlinux.lds.S | ||
| 2796 | */ | ||
| 2795 | BUG_ON(!IS_ALIGNED(wq->cpu_wq.v, align)); | 2797 | BUG_ON(!IS_ALIGNED(wq->cpu_wq.v, align)); |
| 2796 | return wq->cpu_wq.v ? 0 : -ENOMEM; | 2798 | return wq->cpu_wq.v ? 0 : -ENOMEM; |
| 2797 | } | 2799 | } |
