Thread (3 messages) 3 messages, 2 authors, 2011-07-20

Re: [PATCH] MD: generate an event when array sync is complete

flat view

From: Jonathan Brassow <hidden>
Date: 2011-07-20 19:16:09

Neil,

As you said, reap_sync_thread is a much better place for this patch...

 brassow

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 <redacted>

Index: linux-2.6/drivers/md/md.c
===================================================================
--- linux-2.6.orig/drivers/md/md.c
+++ linux-2.6/drivers/md/md.c
@@ -7148,6 +7148,8 @@ static void reap_sync_thread(mddev_t *md
 	set_bit(MD_RECOVERY_NEEDED, &mddev->recovery);
 	sysfs_notify_dirent_safe(mddev->sysfs_action);
 	md_new_event(mddev);
+	if (mddev->event_work.func)
+		queue_work(md_misc_wq, &mddev->event_work);
 }
 
 /*

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help