Revision c331eb04b995ad276a7ece4608326f1db4e137d8 authored by NeilBrown on 31 May 2006, 04:27:13 UTC, committed by Linus Torvalds on 31 May 2006, 23:27:11 UTC
From: NeilBrown <neilb@suse.de>

If an error is reported by a drive in a RAID array (which is done via
bi_end_io - in interrupt context), we call md_error and md_new_event which
calls sysfs_notify.  However sysfs_notify grabs a mutex and so cannot be
called in interrupt context.

This patch just creates a variant of md_new_event which avoids the sysfs
call, and uses that.  A better fix for later is to arrange for the event to
be called from user-context.

Note: avoiding the sysfs call isn't a problem as an error will not, by
itself, modify the sync_action attribute.  (We do still need to
wake_up(&md_event_waiters) as an error by itself will modify /proc/mdstat).

Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
1 parent a835fa7
History
File Mode Size
basic
genksyms
kconfig
ksymoops
mod
package
.gitignore -rw-r--r-- 59 bytes
Kbuild.include -rw-r--r-- 5.1 KB
Lindent -rwxr-xr-x 60 bytes
Makefile -rw-r--r-- 792 bytes
Makefile.build -rw-r--r-- 10.1 KB
Makefile.clean -rw-r--r-- 3.2 KB
Makefile.host -rw-r--r-- 5.8 KB
Makefile.lib -rw-r--r-- 6.4 KB
Makefile.modinst -rw-r--r-- 991 bytes
Makefile.modpost -rw-r--r-- 3.7 KB
bin2c.c -rw-r--r-- 702 bytes
binoffset.c -rw-r--r-- 3.9 KB
bloat-o-meter -rwxr-xr-x 1.5 KB
checkincludes.pl -rwxr-xr-x 529 bytes
checkstack.pl -rwxr-xr-x 3.5 KB
checkversion.pl -rwxr-xr-x 1.9 KB
conmakehash.c -rw-r--r-- 6.0 KB
extract-ikconfig -rwxr-xr-x 1.7 KB
gcc-version.sh -rw-r--r-- 338 bytes
gen_initramfs_list.sh -rw-r--r-- 6.4 KB
kallsyms.c -rw-r--r-- 12.0 KB
kernel-doc -rwxr-xr-x 50.4 KB
makelst -rwxr-xr-x 941 bytes
mkcompile_h -rwxr-xr-x 2.3 KB
mkmakefile -rw-r--r-- 742 bytes
mksysmap -rw-r--r-- 1.3 KB
mkuboot.sh -rwxr-xr-x 293 bytes
mkversion -rw-r--r-- 74 bytes
namespace.pl -rwxr-xr-x 13.1 KB
patch-kernel -rwxr-xr-x 9.7 KB
pnmtologo.c -rw-r--r-- 11.7 KB
profile2linkerlist.pl -rw-r--r-- 378 bytes
setlocalversion -rw-r--r-- 486 bytes
show_delta -rwxr-xr-x 3.0 KB
ver_linux -rwxr-xr-x 3.1 KB

back to top