Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 360401
b: refs/heads/master
c: 39f9d02
h: refs/heads/master
i:
  360399: f883a05
v: v3
  • Loading branch information
Liu Bo authored and Josef Bacik committed Feb 20, 2013
1 parent bef65ff commit 609a22a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 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: 51fab693477c39ba82c153d3fb30a4cc6de49874
refs/heads/master: 39f9d028c9906cc7b625df84442205f6bcc84477
5 changes: 2 additions & 3 deletions trunk/fs/btrfs/locking.c
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,10 @@ void btrfs_tree_read_lock(struct extent_buffer *eb)
read_unlock(&eb->lock);
return;
}
read_unlock(&eb->lock);
wait_event(eb->write_lock_wq, atomic_read(&eb->blocking_writers) == 0);
read_lock(&eb->lock);
if (atomic_read(&eb->blocking_writers)) {
read_unlock(&eb->lock);
wait_event(eb->write_lock_wq,
atomic_read(&eb->blocking_writers) == 0);
goto again;
}
atomic_inc(&eb->read_locks);
Expand Down

0 comments on commit 609a22a

Please sign in to comment.