Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 318886
b: refs/heads/master
c: e9fbcb4
h: refs/heads/master
v: v3
  • Loading branch information
Chris Mason committed Jul 25, 2012
1 parent 6b33304 commit a36333a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2b0ce2c2909368d124a78a88e5c7106fdcba6221
refs/heads/master: e9fbcb42201c862fd6ab45c48ead4f47bb2dea9d
9 changes: 8 additions & 1 deletion trunk/fs/btrfs/async-thread.c
Original file line number Diff line number Diff line change
Expand Up @@ -206,10 +206,17 @@ static noinline void run_ordered_completions(struct btrfs_workers *workers,

work->ordered_func(work);

/* now take the lock again and call the freeing code */
/* now take the lock again and drop our item from the list */
spin_lock(&workers->order_lock);
list_del(&work->order_list);
spin_unlock(&workers->order_lock);

/*
* we don't want to call the ordered free functions
* with the lock held though
*/
work->ordered_free(work);
spin_lock(&workers->order_lock);
}

spin_unlock(&workers->order_lock);
Expand Down

0 comments on commit a36333a

Please sign in to comment.