diff options
-rw-r--r-- | kernel/workqueue.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/workqueue.c b/kernel/workqueue.c index 2994a0e3a61c..1001b6e3fcbd 100644 --- a/kernel/workqueue.c +++ b/kernel/workqueue.c | |||
@@ -2782,7 +2782,6 @@ struct workqueue_struct *__alloc_workqueue_key(const char *name, | |||
2782 | if (IS_ERR(rescuer->task)) | 2782 | if (IS_ERR(rescuer->task)) |
2783 | goto err; | 2783 | goto err; |
2784 | 2784 | ||
2785 | wq->rescuer = rescuer; | ||
2786 | rescuer->task->flags |= PF_THREAD_BOUND; | 2785 | rescuer->task->flags |= PF_THREAD_BOUND; |
2787 | wake_up_process(rescuer->task); | 2786 | wake_up_process(rescuer->task); |
2788 | } | 2787 | } |
@@ -2848,6 +2847,7 @@ void destroy_workqueue(struct workqueue_struct *wq) | |||
2848 | if (wq->flags & WQ_RESCUER) { | 2847 | if (wq->flags & WQ_RESCUER) { |
2849 | kthread_stop(wq->rescuer->task); | 2848 | kthread_stop(wq->rescuer->task); |
2850 | free_mayday_mask(wq->mayday_mask); | 2849 | free_mayday_mask(wq->mayday_mask); |
2850 | kfree(wq->rescuer); | ||
2851 | } | 2851 | } |
2852 | 2852 | ||
2853 | free_cwqs(wq); | 2853 | free_cwqs(wq); |