diff options
author | NeilBrown <neilb@suse.de> | 2010-07-25 21:49:55 -0400 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2010-07-25 22:52:27 -0400 |
commit | 768a418db102bb6aa6064e6090892b5c21ff1f9e (patch) | |
tree | 2f33acbf0ca542f43c8014201b539ae8f461ee5c /drivers/md/md.c | |
parent | 390ee602a142a93f2c7eb7bffee8e277058b8e0a (diff) |
md: add support for raising dm events.
dm uses scheduled work to raise events to user-space.
So allow md device to have work_structs and schedule them on an error.
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md/md.c')
-rw-r--r-- | drivers/md/md.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c index 012482a900fc..f8775699e15a 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c | |||
@@ -6068,6 +6068,8 @@ void md_error(mddev_t *mddev, mdk_rdev_t *rdev) | |||
6068 | set_bit(MD_RECOVERY_INTR, &mddev->recovery); | 6068 | set_bit(MD_RECOVERY_INTR, &mddev->recovery); |
6069 | set_bit(MD_RECOVERY_NEEDED, &mddev->recovery); | 6069 | set_bit(MD_RECOVERY_NEEDED, &mddev->recovery); |
6070 | md_wakeup_thread(mddev->thread); | 6070 | md_wakeup_thread(mddev->thread); |
6071 | if (mddev->event_work.func) | ||
6072 | schedule_work(&mddev->event_work); | ||
6071 | md_new_event_inintr(mddev); | 6073 | md_new_event_inintr(mddev); |
6072 | } | 6074 | } |
6073 | 6075 | ||