md: use sysfs_notify_dirent to notify changes to md/dev-xxx/state
authorNeilBrown <neilb@suse.de>
Tue, 21 Oct 2008 02:25:28 +0000 (13:25 +1100)
committerNeilBrown <neilb@suse.de>
Tue, 21 Oct 2008 02:25:28 +0000 (13:25 +1100)
The 'state' file for a device reports, for example, when the device
has failed.  Changes should be reported to userspace ASAP without
the possibility of blocking on low-memory.  sysfs_notify does
have that possibility (as it takes a mutex which can be held
across a kmalloc) so use sysfs_notify_dirent instead.

Signed-off-by: NeilBrown <neilb@suse.de>

No differences found