Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 16515
b: refs/heads/master
c: 81f1777
h: refs/heads/master
i:
  16513: c2f6f8d
  16511: b960182
v: v3
  • Loading branch information
goggin, edward authored and Linus Torvalds committed Jan 6, 2006
1 parent 1ff21c7 commit d799ef0
Show file tree
Hide file tree
Showing 2 changed files with 11 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: d229a9589ff3b988d3f999cdcfa350f97a372673
refs/heads/master: 81f1777a55e8c631b61e5fa5980fb7a2004287af
10 changes: 10 additions & 0 deletions trunk/drivers/md/dm-ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@ static int dm_hash_rename(const char *old, const char *new)
{
char *new_name, *old_name;
struct hash_cell *hc;
struct dm_table *table;

/*
* duplicate new.
Expand Down Expand Up @@ -317,6 +318,15 @@ static int dm_hash_rename(const char *old, const char *new)
/* rename the device node in devfs */
register_with_devfs(hc);

/*
* Wake up any dm event waiters.
*/
table = dm_get_table(hc->md);
if (table) {
dm_table_event(table);
dm_table_put(table);
}

up_write(&_hash_lock);
kfree(old_name);
return 0;
Expand Down

0 comments on commit d799ef0

Please sign in to comment.