projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bba719b
)
xfs: Calling destroy_work_on_stack() to pair with INIT_WORK_ONSTACK()
author
Chuansheng Liu
<
[email protected]
>
Tue, 7 Jan 2014 08:53:34 +0000
(16:53 +0800)
committer
Ben Myers
<
[email protected]
>
Fri, 10 Jan 2014 18:39:38 +0000
(12:39 -0600)
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
6f96b3063cdd473c68664a190524ed966ac0cd92
)
fs/xfs/xfs_bmap_util.c
patch
|
blob
|
history
diff --git
a/fs/xfs/xfs_bmap_util.c
b/fs/xfs/xfs_bmap_util.c
index 1394106ed22db9db61542f5183023f98ef1ca817..82e0dab46ee52cc991a7130d8f671e011eef10a3 100644
(file)
--- 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;
}