xfs: Calling destroy_work_on_stack() to pair with INIT_WORK_ONSTACK()
In case CONFIG_DEBUG_OBJECTS_WORK is defined, it is needed to call destroy_work_on_stack() which frees the debug object to pair with INIT_WORK_ONSTACK(). Signed-off-by: Liu, Chuansheng <chuansheng.liu@intel.com> Reviewed-by: Ben Myers <bpm@sgi.com> Signed-off-by: Ben Myers <bpm@sgi.com>
This commit is contained in:
committed by
Ben Myers
parent
85dd0707f0
commit
6f96b3063c
@@ -287,6 +287,7 @@ xfs_bmapi_allocate(
|
|||||||
INIT_WORK_ONSTACK(&args->work, xfs_bmapi_allocate_worker);
|
INIT_WORK_ONSTACK(&args->work, xfs_bmapi_allocate_worker);
|
||||||
queue_work(xfs_alloc_wq, &args->work);
|
queue_work(xfs_alloc_wq, &args->work);
|
||||||
wait_for_completion(&done);
|
wait_for_completion(&done);
|
||||||
|
destroy_work_on_stack(&args->work);
|
||||||
return args->result;
|
return args->result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user