Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 206234
b: refs/heads/master
c: 4ce48b3
h: refs/heads/master
v: v3
  • Loading branch information
Tejun Heo committed Jul 2, 2010
1 parent e4b6690 commit 52530f5
Show file tree
Hide file tree
Showing 2 changed files with 5 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: cb444766996395d4370bcc17ec895dd4e13ceb72
refs/heads/master: 4ce48b37bfedc2bc11e61eae76784887e88b922c
4 changes: 4 additions & 0 deletions trunk/kernel/workqueue.c
Original file line number Diff line number Diff line change
Expand Up @@ -2138,6 +2138,10 @@ void flush_workqueue(struct workqueue_struct *wq)

mutex_lock(&wq->flush_mutex);

/* we might have raced, check again with mutex held */
if (wq->first_flusher != &this_flusher)
goto out_unlock;

wq->first_flusher = NULL;

BUG_ON(!list_empty(&this_flusher.list));
Expand Down

0 comments on commit 52530f5

Please sign in to comment.