Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 167669
b: refs/heads/master
c: 4c6fff4
h: refs/heads/master
i:
  167667: 0a90d2d
v: v3
  • Loading branch information
Mikulas Patocka authored and Alasdair G Kergon committed Oct 16, 2009
1 parent 321c94d commit 698d71d
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: 0e8c4e4e3ebb15756ddc4170a88149a2cd323cfe
refs/heads/master: 4c6fff445d7aa753957856278d4d93bcad6e2c14
4 changes: 4 additions & 0 deletions trunk/drivers/md/dm-snap.c
Original file line number Diff line number Diff line change
Expand Up @@ -1152,6 +1152,8 @@ static int snapshot_status(struct dm_target *ti, status_type_t type,
unsigned sz = 0;
struct dm_snapshot *snap = ti->private;

down_write(&snap->lock);

switch (type) {
case STATUSTYPE_INFO:
if (!snap->valid)
Expand Down Expand Up @@ -1183,6 +1185,8 @@ static int snapshot_status(struct dm_target *ti, status_type_t type,
break;
}

up_write(&snap->lock);

return 0;
}

Expand Down

0 comments on commit 698d71d

Please sign in to comment.