Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 284452
b: refs/heads/master
c: 0e805a1
h: refs/heads/master
v: v3
  • Loading branch information
Alex Elder authored and Sage Weil committed Jan 12, 2012
1 parent 11d2995 commit 793dc51
Show file tree
Hide file tree
Showing 2 changed files with 3 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: a40dc6cc2e121abcbd1b22583ef5447763df510c
refs/heads/master: 0e805a1d857799352e51e8697c0b1a30aec16913
2 changes: 2 additions & 0 deletions trunk/drivers/block/rbd.c
Original file line number Diff line number Diff line change
Expand Up @@ -2184,6 +2184,8 @@ static ssize_t rbd_add(struct bus_type *bus,
INIT_LIST_HEAD(&rbd_dev->node);
INIT_LIST_HEAD(&rbd_dev->snaps);

init_rwsem(&rbd_dev->header.snap_rwsem);

/* generate unique id: find highest unique id, add one */
mutex_lock_nested(&ctl_mutex, SINGLE_DEPTH_NESTING);

Expand Down

0 comments on commit 793dc51

Please sign in to comment.