projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3520fa4
)
MD: generate an event when array sync is complete
author
Jonathan Brassow
<jbrassow@redhat.com>
Wed, 27 Jul 2011 01:00:37 +0000
(11:00 +1000)
committer
NeilBrown
<neilb@suse.de>
Wed, 27 Jul 2011 01:00:37 +0000
(11:00 +1000)
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>
drivers/md/md.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/md/md.c
b/drivers/md/md.c
index 2a3205053b2a54e86cfaf8d7f6b68678a49f79b1..7caa096d02f60161b73c214206a73ef5fe044b6e 100644
(file)
--- a/
drivers/md/md.c
+++ b/
drivers/md/md.c
@@
-7130,6
+7130,8
@@
static void reap_sync_thread(mddev_t *mddev)
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);
}
/*