Frederik Deweerdt
d3fc373ac5
sysfs: suppress lockdep warnings
...
Lockdep issues the following warning:
[ 9.064000] =============================================
[ 9.064000] [ INFO: possible recursive locking detected ]
[ 9.064000] 2.6.20-rc3-mm1 #3
[ 9.064000] ---------------------------------------------
[ 9.064000] init/1 is trying to acquire lock:
[ 9.064000] (&sysfs_inode_imutex_key){--..}, at: [<c03e6afc>] mutex_lock+0x1c/0x1f
[ 9.064000]
[ 9.064000] but task is already holding lock:
[ 9.064000] (&sysfs_inode_imutex_key){--..}, at: [<c03e6afc>] mutex_lock+0x1c/0x1f
[ 9.065000]
[ 9.065000] other info that might help us debug this:
[ 9.065000] 2 locks held by init/1:
[ 9.065000] #0 : (tty_mutex){--..}, at: [<c03e6afc>] mutex_lock+0x1c/0x1f
[ 9.065000] #1 : (&sysfs_inode_imutex_key){--..}, at: [<c03e6afc>] mutex_lock+0x1c/0x1f
[ 9.065000]
[ 9.065000] stack backtrace:
[ 9.065000] [<c010390d>] show_trace_log_lvl+0x1a/0x30
[ 9.066000] [<c0103935>] show_trace+0x12/0x14
[ 9.066000] [<c0103a2f>] dump_stack+0x16/0x18
[ 9.066000] [<c0138cb8>] print_deadlock_bug+0xb9/0xc3
[ 9.066000] [<c0138d17>] check_deadlock+0x55/0x5a
[ 9.066000] [<c013a953>] __lock_acquire+0x371/0xbf0
[ 9.066000] [<c013b7a9>] lock_acquire+0x69/0x83
[ 9.066000] [<c03e6b7e>] __mutex_lock_slowpath+0x75/0x2d1
[ 9.066000] [<c03e6afc>] mutex_lock+0x1c/0x1f
[ 9.066000] [<c01b249c>] sysfs_drop_dentry+0xb1/0x133
[ 9.066000] [<c01b25d1>] sysfs_hash_and_remove+0xb3/0x142
[ 9.066000] [<c01b30ed>] sysfs_remove_file+0xd/0x10
[ 9.067000] [<c02849e0>] device_remove_file+0x23/0x2e
[ 9.067000] [<c02850b2>] device_del+0x188/0x1e6
[ 9.067000] [<c028511b>] device_unregister+0xb/0x15
[ 9.067000] [<c0285318>] device_destroy+0x9c/0xa9
[ 9.067000] [<c0261431>] vcs_remove_sysfs+0x1c/0x3b
[ 9.067000] [<c0267a08>] con_close+0x5e/0x6b
[ 9.067000] [<c02598f2>] release_dev+0x4c4/0x6e5
[ 9.067000] [<c0259faa>] tty_release+0x12/0x1c
[ 9.067000] [<c0174872>] __fput+0x177/0x1a0
[ 9.067000] [<c01746f5>] fput+0x3b/0x41
[ 9.068000] [<c0172ee1>] filp_close+0x36/0x65
[ 9.068000] [<c0172f73>] sys_close+0x63/0xa4
[ 9.068000] [<c0102a96>] sysenter_past_esp+0x5f/0x99
[ 9.068000] =======================
This is due to sysfs_hash_and_remove() holding dir->d_inode->i_mutex
before calling sysfs_drop_dentry() which calls orphan_all_buffers()
which in turn takes node->i_mutex.
Signed-off-by: Frederik Deweerdt <frederik.deweerdt@gmail.com>
Cc: Oliver Neukum <oliver@neukum.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2007-02-07 10:37:13 -08:00
..
2007-01-26 13:51:00 -08:00
2007-01-05 23:55:22 -08:00
2006-12-08 08:28:43 -08:00
2006-12-08 08:28:51 -08:00
2006-12-08 08:28:43 -08:00
2006-12-13 09:05:58 -08:00
2006-12-13 09:05:58 -08:00
2006-12-13 09:05:53 -08:00
2007-02-06 20:43:30 +00:00
2006-12-08 08:28:44 -08:00
2006-12-08 08:28:43 -08:00
2006-12-08 08:28:44 -08:00
2006-12-13 15:38:45 -08:00
2006-09-27 08:26:18 -07:00
2007-02-05 13:38:27 -05:00
2006-12-08 08:28:43 -08:00
2006-12-08 08:28:45 -08:00
2006-10-03 08:03:40 -07:00
2006-12-08 08:28:51 -08:00
2006-12-08 08:28:51 -08:00
2006-12-08 08:28:41 -08:00
2006-12-08 08:28:41 -08:00
2006-12-08 08:28:45 -08:00
2007-01-30 08:26:45 -08:00
2007-02-07 10:48:48 -05:00
2006-12-08 08:28:45 -08:00
2006-12-08 08:28:45 -08:00
2007-01-30 08:26:44 -08:00
2006-12-08 08:28:45 -08:00
2006-12-08 08:28:45 -08:00
2006-12-21 09:19:57 -08:00
2006-12-08 08:28:41 -08:00
2006-12-22 08:55:51 -08:00
2006-12-07 08:39:42 -08:00
2007-01-18 10:34:51 +11:00
2007-01-18 10:34:51 +11:00
2007-01-26 10:14:36 -06:00
2007-01-30 08:26:45 -08:00
2006-12-08 08:28:47 -08:00
2006-11-16 11:43:38 -08:00
2006-12-13 09:05:53 -08:00
2007-01-30 16:01:35 -08:00
2006-10-20 10:26:41 -07:00
2007-02-01 16:17:06 -08:00
2006-12-07 08:39:46 -08:00
2007-01-30 16:01:35 -08:00
2007-02-01 12:03:19 -08:00
2006-12-08 08:28:48 -08:00
2006-12-09 01:03:58 +00:00
2007-02-01 16:22:41 -08:00
2006-12-08 08:28:48 -08:00
2006-12-30 10:56:42 -08:00
2007-01-23 07:52:06 -08:00
2006-12-08 08:28:49 -08:00
2006-12-13 09:05:53 -08:00
2007-02-07 10:37:13 -08:00
2006-12-22 08:55:47 -08:00
2006-12-08 08:28:50 -08:00
2007-01-30 08:26:45 -08:00
2006-11-16 11:43:38 -08:00
2006-12-21 10:01:08 -08:00
2007-02-03 11:26:06 -08:00
2006-01-11 18:42:13 -08:00
2007-01-05 23:55:23 -08:00
2006-12-08 08:28:41 -08:00
2007-01-26 13:51:00 -08:00
2007-01-26 13:51:00 -08:00
2006-12-08 08:28:41 -08:00
2006-12-13 09:05:58 -08:00
2006-10-04 06:51:26 -06:00
2006-12-13 09:05:50 -08:00
2007-02-03 11:26:06 -08:00
2007-01-29 20:20:42 -08:00
2006-09-30 20:52:18 +02:00
2006-12-08 08:28:41 -08:00
2006-12-10 09:57:22 -08:00
2006-12-07 08:39:41 -08:00
2006-12-07 08:39:25 -08:00
2006-12-10 09:57:21 -08:00
2006-12-08 08:28:41 -08:00
2006-12-08 08:28:41 -08:00
2006-01-08 20:12:40 -08:00
2006-12-08 08:28:41 -08:00
2006-12-10 09:57:22 -08:00
2006-12-10 09:57:22 -08:00
2006-04-11 13:53:33 +02:00
2006-12-08 08:28:41 -08:00
2006-12-22 08:55:50 -08:00
2006-09-29 09:18:20 -07:00
2007-01-26 12:53:20 -08:00
2006-09-29 09:18:24 -07:00
2006-12-13 09:05:50 -08:00
2006-12-08 08:28:41 -08:00
2006-12-04 02:00:24 -05:00
2006-09-30 20:52:32 +02:00
2006-12-08 08:28:41 -08:00
2006-10-12 15:09:51 +02:00
2006-12-22 08:55:48 -08:00
2006-01-08 20:13:36 -08:00
2006-12-08 08:28:41 -08:00
2006-12-08 08:28:41 -08:00
2006-12-08 08:28:40 -08:00
2006-12-07 08:39:25 -08:00
2006-09-30 20:52:26 +02:00
2006-12-08 08:28:41 -08:00
2006-12-13 09:05:50 -08:00
2006-06-30 19:25:36 +02:00
2006-09-30 20:52:31 +02:00
2006-12-10 09:57:22 -08:00
2006-12-21 00:16:03 -08:00
2006-12-08 08:28:51 -08:00
2006-12-08 08:28:51 -08:00
2006-10-01 00:39:19 -07:00
2006-03-23 07:38:11 -08:00
2006-09-30 20:52:31 +02:00
2006-12-13 09:05:53 -08:00
2006-10-01 00:39:28 -07:00
2006-12-08 08:28:41 -08:00
2006-12-10 09:57:22 -08:00
2006-12-08 08:28:41 -08:00
2006-12-13 09:05:47 -08:00
2006-12-22 08:55:48 -08:00
2006-12-08 08:28:41 -08:00
2007-01-11 18:18:21 -08:00
2006-12-08 08:28:41 -08:00
2006-12-04 02:00:24 -05:00
2006-12-08 08:28:41 -08:00