diff options
author | Chuansheng Liu <chuansheng.liu@intel.com> | 2014-01-07 12:53:34 +0400 |
---|---|---|
committer | Ben Myers <bpm@sgi.com> | 2014-01-10 22:39:38 +0400 |
commit | 1f4a63bf019524c96e79f088cd717b96ef00a249 (patch) | |
tree | b06d06c6d0acb3305ef59dc02d29597c289dcf89 /fs | |
parent | bba719b5004234e55737e7074b81b337210c511d (diff) | |
download | linux-1f4a63bf019524c96e79f088cd717b96ef00a249.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>
(cherry picked from commit 6f96b3063cdd473c68664a190524ed966ac0cd92)
Diffstat (limited to 'fs')
-rw-r--r-- | fs/xfs/xfs_bmap_util.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/xfs/xfs_bmap_util.c b/fs/xfs/xfs_bmap_util.c index 1394106ed22d..82e0dab46ee5 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; } |