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
File | Mode | Size |
---|---|---|
Kconfig | -rw-r--r-- | 1.1 KB |
Kconfig.iosched | -rw-r--r-- | 1.9 KB |
Makefile | -rw-r--r-- | 333 bytes |
as-iosched.c | -rw-r--r-- | 45.6 KB |
blktrace.c | -rw-r--r-- | 11.8 KB |
cfq-iosched.c | -rw-r--r-- | 58.0 KB |
deadline-iosched.c | -rw-r--r-- | 19.0 KB |
elevator.c | -rw-r--r-- | 20.1 KB |
genhd.c | -rw-r--r-- | 16.7 KB |
ioctl.c | -rw-r--r-- | 7.4 KB |
ll_rw_blk.c | -rw-r--r-- | 99.1 KB |
noop-iosched.c | -rw-r--r-- | 2.6 KB |
scsi_ioctl.c | -rw-r--r-- | 16.4 KB |
Computing file changes ...