]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb519e7d357cb6ed82df122d1f1955db9d9966225
tree482b825a00356a2b7b605065ce1d6ebe87591eb5
parent477db6d45103e2b592adda50c47be9f5e095d2da
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: NeilBrown <neilb@suse.de>
drivers/md/md.c
include/linux/raid/md_k.h