summaryrefslogtreecommitdiff
path: root/fs/xfs/xfs_bmap_util.c
diff options
context:
space:
mode:
authorChuansheng Liu <chuansheng.liu@intel.com>2014-01-07 08:53:34 (GMT)
committerBen Myers <bpm@sgi.com>2014-01-09 21:50:31 (GMT)
commit6f96b3063cdd473c68664a190524ed966ac0cd92 (patch)
tree9f8e47cc5bf4d0965f92ca6cb1f4002fbd23277f /fs/xfs/xfs_bmap_util.c
parent85dd0707f0cad26d60f2dc574d17a5ab948d10f7 (diff)
downloadlinux-6f96b3063cdd473c68664a190524ed966ac0cd92.tar.xz
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>
Diffstat (limited to 'fs/xfs/xfs_bmap_util.c')
-rw-r--r--fs/xfs/xfs_bmap_util.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/xfs/xfs_bmap_util.c b/fs/xfs/xfs_bmap_util.c
index 5887e41..3f534e0 100644
--- a/fs/xfs/xfs_bmap_util.c
+++ b/fs/xfs/xfs_bmap_util.c
@@ -287,6 +287,7 @@ xfs_bmapi_allocate(
INIT_WORK_ONSTACK(&args->work, xfs_bmapi_allocate_worker);
queue_work(xfs_alloc_wq, &args->work);
wait_for_completion(&done);
+ destroy_work_on_stack(&args->work);
return args->result;
}