diff options
-rw-r--r-- | drivers/md/dm-ioctl.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/md/dm-ioctl.c b/drivers/md/dm-ioctl.c index 07d44e19536e..3e327db57310 100644 --- a/drivers/md/dm-ioctl.c +++ b/drivers/md/dm-ioctl.c | |||
@@ -270,6 +270,7 @@ static int dm_hash_rename(const char *old, const char *new) | |||
270 | { | 270 | { |
271 | char *new_name, *old_name; | 271 | char *new_name, *old_name; |
272 | struct hash_cell *hc; | 272 | struct hash_cell *hc; |
273 | struct dm_table *table; | ||
273 | 274 | ||
274 | /* | 275 | /* |
275 | * duplicate new. | 276 | * duplicate new. |
@@ -317,6 +318,15 @@ static int dm_hash_rename(const char *old, const char *new) | |||
317 | /* rename the device node in devfs */ | 318 | /* rename the device node in devfs */ |
318 | register_with_devfs(hc); | 319 | register_with_devfs(hc); |
319 | 320 | ||
321 | /* | ||
322 | * Wake up any dm event waiters. | ||
323 | */ | ||
324 | table = dm_get_table(hc->md); | ||
325 | if (table) { | ||
326 | dm_table_event(table); | ||
327 | dm_table_put(table); | ||
328 | } | ||
329 | |||
320 | up_write(&_hash_lock); | 330 | up_write(&_hash_lock); |
321 | kfree(old_name); | 331 | kfree(old_name); |
322 | return 0; | 332 | return 0; |