]> git.baikalelectronics.ru Git - kernel.git/commit
md: notify userspace on 'write-pending' changes to array_state
authorNeilBrown <neilb@suse.de>
Fri, 23 May 2008 20:04:36 +0000 (13:04 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 24 May 2008 16:56:10 +0000 (09:56 -0700)
commit60113e1ee657695b439fab957982ae06344e1420
tree5a01eeb38627026ace5b8956fdddec08b414cf76
parent5a9a0a4d84d12cc725bbab1246cf15a551646b21
md: notify userspace on 'write-pending' changes to array_state

When an array enters write pending, 'array_state' changes, so we must be
sure to sysfs_notify.

Also, when waiting for user-space to acknowledge 'write-pending' by
marking the metadata as dirty, we don't want to wait for MD_CHANGE_DEVS to
be cleared as that might not happen.  So explicity test for the bits that
we are really interested in.

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>
drivers/md/md.c