md: ensure new badblocks are handled promptly.
authorNeilBrown <neilb@suse.de>
Thu, 8 Dec 2011 05:26:08 +0000 (16:26 +1100)
committerNeilBrown <neilb@suse.de>
Thu, 8 Dec 2011 05:26:08 +0000 (16:26 +1100)
commit8bd2f0a05b361e07d48bb34398593f5f523946b3
treea87860b4b8821b40eb9e6bb5333f71dfa8c3fb39
parent52c64152a935e63d9ff73ce823730c9a23dedbff
md: ensure new badblocks are handled promptly.

When we mark blocks as bad we need them to be acknowledged by the
metadata handler promptly.

For an in-kernel metadata handler that was already being done.  But
for an external metadata handler we need to alert it of the change by
sending a notification through the sysfs file.  This adds that
notification.

Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/md.c