diff options
Diffstat (limited to 'kernel/workqueue.c')
-rw-r--r-- | kernel/workqueue.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/kernel/workqueue.c b/kernel/workqueue.c index 1001b6e3fcbd..7415f27a8aa7 100644 --- a/kernel/workqueue.c +++ b/kernel/workqueue.c | |||
@@ -1485,6 +1485,8 @@ static void gcwq_mayday_timeout(unsigned long __gcwq) | |||
1485 | * otherwise. | 1485 | * otherwise. |
1486 | */ | 1486 | */ |
1487 | static bool maybe_create_worker(struct global_cwq *gcwq) | 1487 | static bool maybe_create_worker(struct global_cwq *gcwq) |
1488 | __releases(&gcwq->lock) | ||
1489 | __acquires(&gcwq->lock) | ||
1488 | { | 1490 | { |
1489 | if (!need_to_create_worker(gcwq)) | 1491 | if (!need_to_create_worker(gcwq)) |
1490 | return false; | 1492 | return false; |
@@ -1722,6 +1724,8 @@ static void cwq_dec_nr_in_flight(struct cpu_workqueue_struct *cwq, int color) | |||
1722 | * spin_lock_irq(gcwq->lock) which is released and regrabbed. | 1724 | * spin_lock_irq(gcwq->lock) which is released and regrabbed. |
1723 | */ | 1725 | */ |
1724 | static void process_one_work(struct worker *worker, struct work_struct *work) | 1726 | static void process_one_work(struct worker *worker, struct work_struct *work) |
1727 | __releases(&gcwq->lock) | ||
1728 | __acquires(&gcwq->lock) | ||
1725 | { | 1729 | { |
1726 | struct cpu_workqueue_struct *cwq = get_work_cwq(work); | 1730 | struct cpu_workqueue_struct *cwq = get_work_cwq(work); |
1727 | struct global_cwq *gcwq = cwq->gcwq; | 1731 | struct global_cwq *gcwq = cwq->gcwq; |
@@ -3230,6 +3234,8 @@ static int __cpuinit trustee_thread(void *__gcwq) | |||
3230 | * multiple times. To be used by cpu_callback. | 3234 | * multiple times. To be used by cpu_callback. |
3231 | */ | 3235 | */ |
3232 | static void __cpuinit wait_trustee_state(struct global_cwq *gcwq, int state) | 3236 | static void __cpuinit wait_trustee_state(struct global_cwq *gcwq, int state) |
3237 | __releases(&gcwq->lock) | ||
3238 | __acquires(&gcwq->lock) | ||
3233 | { | 3239 | { |
3234 | if (!(gcwq->trustee_state == state || | 3240 | if (!(gcwq->trustee_state == state || |
3235 | gcwq->trustee_state == TRUSTEE_DONE)) { | 3241 | gcwq->trustee_state == TRUSTEE_DONE)) { |