workqueue: free rescuer on destroy_workqueue
authorXiaotian Feng <dfeng@redhat.com>
Mon, 16 Aug 2010 07:54:28 +0000 (09:54 +0200)
committerTejun Heo <tj@kernel.org>
Mon, 16 Aug 2010 07:55:01 +0000 (09:55 +0200)
commit8d9df9f0844ed87541453a3ef91bfc9f487053b7
treeb9779092c34a47de0cb268f4a631bc1e0024a01a
parentda5cabf80e2433131bf0ed8993abc0f7ea618c73
workqueue: free rescuer on destroy_workqueue

wq->rescuer is not freed when wq is destroyed, leads a memory leak
then. This patch also remove a redundant line.

Signed-off-by: Xiaotian Feng <dfeng@redhat.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Oleg Nesterov <oleg@redhat.com>
kernel/workqueue.c