Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 304775
b: refs/heads/master
c: 0976dfc
h: refs/heads/master
i:
  304773: 582ac5e
  304771: 01fd1a4
  304767: ba50af8
v: v3
  • Loading branch information
Stephen Boyd authored and Tejun Heo committed Apr 23, 2012
1 parent 995fcc2 commit 40c6172
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f5b2552b4ebbeadcadde1532d7bbd3f850719046
refs/heads/master: 0976dfc1d0cd80a4e9dfaf87bd8744612bde475a
3 changes: 3 additions & 0 deletions trunk/kernel/workqueue.c
Original file line number Diff line number Diff line change
Expand Up @@ -2509,6 +2509,9 @@ bool flush_work(struct work_struct *work)
{
struct wq_barrier barr;

lock_map_acquire(&work->lockdep_map);
lock_map_release(&work->lockdep_map);

if (start_flush_work(work, &barr, true)) {
wait_for_completion(&barr.done);
destroy_work_on_stack(&barr.work);
Expand Down

0 comments on commit 40c6172

Please sign in to comment.