Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 186430
b: refs/heads/master
c: 0f3649a
h: refs/heads/master
v: v3
  • Loading branch information
Mike Snitzer authored and Alasdair G Kergon committed Mar 6, 2010
1 parent 6a5ce2f commit 6e6a8f2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 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: ede5ea0b8b815560dc54c712536fdf0b456b6ad0
refs/heads/master: 0f3649a9e305ea22eb196a84a2d7520afcaa6060
9 changes: 5 additions & 4 deletions trunk/drivers/md/dm-ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -897,16 +897,17 @@ static int do_resume(struct dm_ioctl *param)
set_disk_ro(dm_disk(md), 1);
}

if (dm_suspended_md(md))
if (dm_suspended_md(md)) {
r = dm_resume(md);
if (!r)
dm_kobject_uevent(md, KOBJ_CHANGE, param->event_nr);
}

if (old_map)
dm_table_destroy(old_map);

if (!r) {
dm_kobject_uevent(md, KOBJ_CHANGE, param->event_nr);
if (!r)
r = __dev_status(md, param);
}

dm_put(md);
return r;
Expand Down

0 comments on commit 6e6a8f2

Please sign in to comment.