Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 27051
b: refs/heads/master
c: c331eb0
h: refs/heads/master
i:
  27049: 1ba3412
  27047: c1d0357
v: v3
  • Loading branch information
NeilBrown authored and Linus Torvalds committed May 31, 2006
1 parent c7fe62d commit 2b9429b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a835fa798ddfbfe4c63ff5e22c93fa5d24c95f7b
refs/heads/master: c331eb04b995ad276a7ece4608326f1db4e137d8
11 changes: 10 additions & 1 deletion trunk/drivers/md/md.c
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,15 @@ void md_new_event(mddev_t *mddev)
}
EXPORT_SYMBOL_GPL(md_new_event);

/* Alternate version that can be called from interrupts
* when calling sysfs_notify isn't needed.
*/
void md_new_event_inintr(mddev_t *mddev)
{
atomic_inc(&md_event_count);
wake_up(&md_event_waiters);
}

/*
* Enables to iterate over all existing md arrays
* all_mddevs_lock protects this list.
Expand Down Expand Up @@ -4149,7 +4158,7 @@ void md_error(mddev_t *mddev, mdk_rdev_t *rdev)
set_bit(MD_RECOVERY_INTR, &mddev->recovery);
set_bit(MD_RECOVERY_NEEDED, &mddev->recovery);
md_wakeup_thread(mddev->thread);
md_new_event(mddev);
md_new_event_inintr(mddev);
}

/* seq_file implementation /proc/mdstat */
Expand Down

0 comments on commit 2b9429b

Please sign in to comment.