Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 309449
b: refs/heads/master
c: 403f24d
h: refs/heads/master
i:
  309447: 398bcbe
v: v3
  • Loading branch information
Josh Durgin authored and Alex Elder committed May 14, 2012
1 parent afcc483 commit 019e95c
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 50f7c4c967d0b5acd8e7ba6ab654dc4a7ac869ac
refs/heads/master: 403f24d3d51760a8b9368d595fa5f48c309f1a0f
4 changes: 3 additions & 1 deletion trunk/drivers/block/rbd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1684,7 +1684,9 @@ static int rbd_header_add_snap(struct rbd_device *dev,
if (ret < 0)
return ret;

dev->header.snapc->seq = new_snapid;
down_write(&dev->header_rwsem);
dev->header.snapc->seq = new_snapid;
up_write(&dev->header_rwsem);

return 0;
bad:
Expand Down

0 comments on commit 019e95c

Please sign in to comment.