Skip to content

Commit 1f4a63b

Browse files
Chuansheng-LiuBen Myers
authored andcommitted
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 <[email protected]> Reviewed-by: Ben Myers <[email protected]> Signed-off-by: Ben Myers <[email protected]> (cherry picked from commit 6f96b30)
1 parent bba719b commit 1f4a63b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/xfs/xfs_bmap_util.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,7 @@ xfs_bmapi_allocate(
287287
INIT_WORK_ONSTACK(&args->work, xfs_bmapi_allocate_worker);
288288
queue_work(xfs_alloc_wq, &args->work);
289289
wait_for_completion(&done);
290+
destroy_work_on_stack(&args->work);
290291
return args->result;
291292
}
292293

0 commit comments

Comments
 (0)