aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/md.c
diff options
context:
space:
mode:
authorJonathan Brassow <jbrassow@redhat.com>2011-07-26 21:00:37 -0400
committerNeilBrown <neilb@suse.de>2011-07-26 21:00:37 -0400
commit768e587e18c1c4ce0403b9532115752189422408 (patch)
tree1b0d65fc839aa562c409a46984e1e15b1ae629d6 /drivers/md/md.c
parent3520fa4db7fc4ae1b0373dcecdaf720f620dab2d (diff)
MD: generate an event when array sync is complete
This patch causes MD to generate an event (for device-mapper) when the synchronization thread is reaped. This is expected behavior for device-mapper. Signed-off-by: Jonathan Brassow <jbrassow@redhat.com> Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md/md.c')
-rw-r--r--drivers/md/md.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c
index 2a3205053b2a..7caa096d02f6 100644
--- a/drivers/md/md.c
+++ b/drivers/md/md.c
@@ -7130,6 +7130,8 @@ static void reap_sync_thread(mddev_t *mddev)
7130 set_bit(MD_RECOVERY_NEEDED, &mddev->recovery); 7130 set_bit(MD_RECOVERY_NEEDED, &mddev->recovery);
7131 sysfs_notify_dirent_safe(mddev->sysfs_action); 7131 sysfs_notify_dirent_safe(mddev->sysfs_action);
7132 md_new_event(mddev); 7132 md_new_event(mddev);
7133 if (mddev->event_work.func)
7134 queue_work(md_misc_wq, &mddev->event_work);
7133} 7135}
7134 7136
7135/* 7137/*