Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964792AbXBNWBR (ORCPT ); Wed, 14 Feb 2007 17:01:17 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S964791AbXBNWBR (ORCPT ); Wed, 14 Feb 2007 17:01:17 -0500 Received: from keetweej.vanheusden.com ([213.84.46.114]:45836 "EHLO keetweej.vanheusden.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964792AbXBNWBP (ORCPT ); Wed, 14 Feb 2007 17:01:15 -0500 Date: Wed, 14 Feb 2007 22:59:23 +0100 From: Folkert van Heusden To: linux-kernel@vger.kernel.org Subject: [2.6.20] possible circular locking dependency detected Message-ID: <20070214215922.GW26684@vanheusden.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Organization: www.unixexpert.nl X-Chameleon-Return-To: folkert@vanheusden.com X-Xfmail-Return-To: folkert@vanheusden.com X-Phonenumber: +31-6-41278122 X-URL: http://www.vanheusden.com/ X-PGP-KeyID: 1F28D8AE X-GPG-fingerprint: AC89 09CE 41F2 00B4 FCF2 B174 3019 0E8C 1F28 D8AE X-Key: http://pgp.surfnet.nl:11371/pks/lookup?op=get&search=0x1F28D8AE Read-Receipt-To: Reply-By: Thu Feb 15 16:23:53 CET 2007 X-Message-Flag: MultiTail - tail on steroids User-Agent: Mutt/1.5.13 (2006-08-11) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 9552 Lines: 177 Is this of any interest? [ 141.713801] ======================================================= [ 141.713891] [ INFO: possible circular locking dependency detected ] [ 141.713937] 2.6.20 #2 [ 141.713980] ------------------------------------------------------- [ 141.714025] tor/5534 is trying to acquire lock: [ 141.714070] (tty_mutex){--..}, at: [] mutex_lock+0x8/0xa [ 141.714272] [ 141.714273] but task is already holding lock: [ 141.714277] (&s->s_dquot.dqptr_sem){----}, at: [] dquot_alloc_space+0x50/0x189 [ 141.714484] [ 141.714486] which lock already depends on the new lock. [ 141.714488] [ 141.714490] [ 141.714491] the existing dependency chain (in reverse order) is: [ 141.714690] [ 141.714691] -> #4 (&s->s_dquot.dqptr_sem){----}: [ 141.714696] [] check_prev_add+0x154/0x206 [ 141.714706] [] check_prevs_add+0x6a/0xd5 [ 141.714716] [] __lock_acquire+0x61c/0xa05 [ 141.714723] [] lock_acquire+0x62/0x81 [ 141.714730] [] down_read+0x2b/0x3d [ 141.714739] [] dquot_alloc_space+0x50/0x189 [ 141.714746] [] ext3_new_blocks+0x44b/0x5a2 [ 141.714754] [] ext3_alloc_blocks+0x40/0xdf [ 141.714762] [] ext3_alloc_branch+0x50/0x21b [ 141.714770] [] ext3_get_blocks_handle+0x1b8/0x367 [ 141.714778] [] ext3_getblk+0x97/0x228 [ 141.714786] [] ext3_bread+0x1a/0x78 [ 141.714796] [] ext3_mkdir+0xf4/0x270 [ 141.714803] [] vfs_mkdir+0xb3/0x161 [ 141.714811] [] sys_mkdirat+0x8c/0xc4 [ 141.714818] [] sys_mkdir+0x20/0x22 [ 141.714826] [] syscall_call+0x7/0xb [ 141.714836] [] 0xffffffff [ 141.714857] [ 141.714858] -> #3 (&ei->truncate_mutex){--..}: [ 141.714861] [] check_prev_add+0x154/0x206 [ 141.714870] [] check_prevs_add+0x6a/0xd5 [ 141.714880] [] __lock_acquire+0x61c/0xa05 [ 141.714887] [] lock_acquire+0x62/0x81 [ 141.714894] [] __mutex_lock_slowpath+0x75/0x28c [ 141.714902] [] mutex_lock+0x8/0xa [ 141.714908] [] ext3_truncate+0x170/0x468 [ 141.714919] [] vmtruncate+0xa6/0x116 [ 141.714927] [] inode_setattr+0x145/0x16c [ 141.714935] [] ext3_setattr+0x150/0x22f [ 141.714944] [] notify_change+0x35b/0x392 [ 141.714952] [] do_truncate+0x52/0x75 [ 141.714963] [] may_open+0x1ec/0x231 [ 141.714971] [] open_namei+0xda/0x59b [ 141.714978] [] do_filp_open+0x2c/0x53 [ 141.714986] [] do_sys_open+0x52/0xd8 [ 141.714994] [] sys_open+0x1c/0x1e [ 141.715004] [] syscall_call+0x7/0xb [ 141.715010] [] 0xffffffff [ 141.715020] [ 141.715020] -> #2 (&inode->i_alloc_sem){--..}: [ 141.715024] [] check_prev_add+0x154/0x206 [ 141.715034] [] check_prevs_add+0x6a/0xd5 [ 141.715045] [] __lock_acquire+0x61c/0xa05 [ 141.715052] [] lock_acquire+0x62/0x81 [ 141.715058] [] down_write+0x2b/0x45 [ 141.715066] [] notify_change+0x2e2/0x392 [ 141.715073] [] do_truncate+0x52/0x75 [ 141.715084] [] may_open+0x1ec/0x231 [ 141.715091] [] open_namei+0xda/0x59b [ 141.715098] [] do_filp_open+0x2c/0x53 [ 141.715106] [] do_sys_open+0x52/0xd8 [ 141.715113] [] sys_open+0x1c/0x1e [ 141.715120] [] syscall_call+0x7/0xb [ 141.715129] [] 0xffffffff [ 141.715137] [ 141.715138] -> #1 (&sysfs_inode_imutex_key){--..}: [ 141.715143] [] check_prev_add+0x154/0x206 [ 141.715151] [] check_prevs_add+0x6a/0xd5 [ 141.715159] [] __lock_acquire+0x61c/0xa05 [ 141.715166] [] lock_acquire+0x62/0x81 [ 141.715173] [] __mutex_lock_slowpath+0x75/0x28c [ 141.715181] [] mutex_lock+0x8/0xa [ 141.715188] [] sysfs_hash_and_remove+0x43/0x11c [ 141.715196] [] sysfs_remove_file+0xd/0x12 [ 141.715206] [] device_remove_file+0x32/0x44 [ 141.715213] [] device_del+0x174/0x1d2 [ 141.715220] [] device_unregister+0xb/0x15 [ 141.715228] [] device_destroy+0x8d/0x9a [ 141.715234] [] vcs_remove_sysfs+0x1c/0x38 [ 141.715244] [] con_close+0x5e/0x6b [ 141.715251] [] release_dev+0x4c4/0x6ce [ 141.715260] [] tty_release+0x12/0x1c [ 141.715268] [] __fput+0x145/0x16e [ 141.715276] [] fput+0x19/0x1b [ 141.715285] [] filp_close+0x3c/0x75 [ 141.715292] [] sys_close+0x69/0xb4 [ 141.715299] [] syscall_call+0x7/0xb [ 141.715307] [] 0xffffffff [ 141.715316] [ 141.715317] -> #0 (tty_mutex){--..}: [ 141.715321] [] check_prev_add+0x34/0x206 [ 141.715332] [] check_prevs_add+0x6a/0xd5 [ 141.715340] [] __lock_acquire+0x61c/0xa05 [ 141.715347] [] lock_acquire+0x62/0x81 [ 141.715354] [] __mutex_lock_slowpath+0x75/0x28c [ 141.715362] [] mutex_lock+0x8/0xa [ 141.715371] [] print_warning+0x8c/0x15d [ 141.715378] [] dquot_alloc_space+0x184/0x189 [ 141.715387] [] ext3_new_blocks+0x44b/0x5a2 [ 141.715394] [] ext3_alloc_blocks+0x40/0xdf [ 141.715402] [] ext3_alloc_branch+0x50/0x21b [ 141.715412] [] ext3_get_blocks_handle+0x1b8/0x367 [ 141.715420] [] ext3_get_block+0x78/0xe3 [ 141.715428] [] __block_prepare_write+0x168/0x3fd [ 141.715437] [] block_prepare_write+0x28/0x3b [ 141.715445] [] ext3_prepare_write+0x3f/0x18d [ 141.715455] [] generic_file_buffered_write+0x197/0x5e6 [ 141.715463] [] __generic_file_aio_write_nolock+0x2ae/0x5ad [ 141.715472] [] generic_file_aio_write+0x58/0xc4 [ 141.715479] [] ext3_file_write+0x2d/0xba [ 141.715487] [] do_sync_write+0xc7/0x116 [ 141.715497] [] vfs_write+0x182/0x187 [ 141.715504] [] sys_write+0x3d/0x64 [ 141.715512] [] syscall_call+0x7/0xb [ 141.715519] [] 0xffffffff [ 141.715527] [ 141.715529] other info that might help us debug this: [ 141.715531] [ 141.715533] 3 locks held by tor/5534: [ 141.715535] #0: (&inode->i_mutex){--..}, at: [] mutex_lock+0x8/0xa [ 141.715542] #1: (&ei->truncate_mutex){--..}, at: [] mutex_lock+0x8/0xa [ 141.715548] #2: (&s->s_dquot.dqptr_sem){----}, at: [] dquot_alloc_space+0x50/0x189 [ 141.715555] [ 141.715556] stack backtrace: [ 141.715558] [] show_trace_log_lvl+0x1a/0x30 [ 141.715563] [] show_trace+0x12/0x14 [ 141.715567] [] dump_stack+0x16/0x18 [ 141.715573] [] print_circular_bug_tail+0x6f/0x71 [ 141.715578] [] check_prev_add+0x34/0x206 [ 141.715582] [] check_prevs_add+0x6a/0xd5 [ 141.715586] [] __lock_acquire+0x61c/0xa05 [ 141.715591] [] lock_acquire+0x62/0x81 [ 141.715595] [] __mutex_lock_slowpath+0x75/0x28c [ 141.715599] [] mutex_lock+0x8/0xa [ 141.715602] [] print_warning+0x8c/0x15d [ 141.715606] [] dquot_alloc_space+0x184/0x189 [ 141.715612] [] ext3_new_blocks+0x44b/0x5a2 [ 141.715616] [] ext3_alloc_blocks+0x40/0xdf [ 141.715620] [] ext3_alloc_branch+0x50/0x21b [ 141.715624] [] ext3_get_blocks_handle+0x1b8/0x367 [ 141.715629] [] ext3_get_block+0x78/0xe3 [ 141.715633] [] __block_prepare_write+0x168/0x3fd [ 141.715638] [] block_prepare_write+0x28/0x3b [ 141.715641] [] ext3_prepare_write+0x3f/0x18d [ 141.715647] [] generic_file_buffered_write+0x197/0x5e6 [ 141.715654] [] __generic_file_aio_write_nolock+0x2ae/0x5ad [ 141.715658] [] generic_file_aio_write+0x58/0xc4 [ 141.715662] [] ext3_file_write+0x2d/0xba [ 141.715666] [] do_sync_write+0xc7/0x116 [ 141.715671] [] vfs_write+0x182/0x187 [ 141.715675] [] sys_write+0x3d/0x64 [ 141.715679] [] syscall_call+0x7/0xb [ 141.715682] ======================= System is a P4 with HT, 3.2GHz, 2GB ram. Filesystem is ext3. Folkert van Heusden www.vanheusden.com/multitail - multitail is tail on steroids. multiple windows, filtering, coloring, anything you can think of ---------------------------------------------------------------------- Phone: +31-6-41278122, PGP-key: 1F28D8AE, www.vanheusden.com - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/