History

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)

Chuansheng Liu committed 12 years ago

Commit 1f4a63b1 parent bba719b1 file · +1 −0Browse files

Unified · Split

fs/xfs/xfs_bmap_util.c+1−0
@@ -287,6 +287,7 @@ xfs_bmapi_allocate( · 286 unmodified lines
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

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t