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)

authored by Chuansheng Liu and committed by Ben Myers 1f4a63bf bba719b5

Changed files
+1
fs
+1
fs/xfs/xfs_bmap_util.c
··· 287 INIT_WORK_ONSTACK(&args->work, xfs_bmapi_allocate_worker); 288 queue_work(xfs_alloc_wq, &args->work); 289 wait_for_completion(&done); 290 return args->result; 291 } 292
··· 287 INIT_WORK_ONSTACK(&args->work, xfs_bmapi_allocate_worker); 288 queue_work(xfs_alloc_wq, &args->work); 289 wait_for_completion(&done); 290 + destroy_work_on_stack(&args->work); 291 return args->result; 292 } 293