Dan Williams 6bfe0b4990 md: support blocking writes to an array on device failure
Allows a userspace metadata handler to take action upon detecting a device
failure.

Based on an original patch by Neil Brown.

Changes:
-added blocked_wait waitqueue to rdev
-don't qualify Blocked with Faulty always let userspace block writes
-added md_wait_for_blocked_rdev to wait for the block device to be clear, if
 userspace misses the notification another one is sent every 5 seconds
-set MD_RECOVERY_NEEDED after clearing "blocked"
-kill DoBlock flag, just test mddev->external

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-04-30 08:29:33 -07:00
..
2008-03-13 22:53:29 +01:00
2008-04-21 22:38:45 +00:00
2008-04-29 08:06:27 -07:00
2008-04-29 13:46:54 -07:00
2008-04-29 08:06:27 -07:00
2008-04-29 08:06:18 -07:00
2008-02-26 14:12:09 +09:00
2008-04-23 21:25:35 -04:00
2008-04-29 08:06:28 -07:00
2008-04-07 13:14:22 -07:00
2008-03-04 16:35:12 -08:00
2008-04-24 23:57:33 +02:00
2008-04-24 23:57:33 +02:00