Skip to content
Commit 3c0ee63a authored by NeilBrown's avatar NeilBrown
Browse files

md: use sysfs_notify_dirent to notify changes to md/dev-xxx/state



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: default avatarNeilBrown <neilb@suse.de>
parent b62b7590
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment