Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756006AbYJQMnf (ORCPT ); Fri, 17 Oct 2008 08:43:35 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755569AbYJQMnM (ORCPT ); Fri, 17 Oct 2008 08:43:12 -0400 Received: from mail-gx0-f16.google.com ([209.85.217.16]:35074 "EHLO mail-gx0-f16.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755328AbYJQMnJ (ORCPT ); Fri, 17 Oct 2008 08:43:09 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:mime-version:content-type :content-transfer-encoding:content-disposition; b=F1gIcGHlhxK3QWmRxU6XO25CXZcIdXSF9Typo+58VgCCOrbJIXLTMtNyvCHNZFAY80 S6Mb6BDKBOYYvxA9XTwHD4ms+VDmj6BDxaD4zOnb3CvXDpBLQuZ3AJTG1nf4uOFzThZz uBhJA4oaWUIFvY2XwS5NYGmAGHWzDP+tqifP8= Message-ID: Date: Fri, 17 Oct 2008 16:43:07 +0400 From: "Alexander Beregalov" To: xfs@oss.sgi.com Subject: BUG: sleeping function called from invalid context at kernel/rwsem.c:131 XFS? (was: Re: linux-next: Tree for October 17) Cc: linux-next@vger.kernel.org, LKML MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 8691 Lines: 154 It is SMP x86_64, rootfs is on XFS [ 4.419571] BUG: sleeping function called from invalid context at kernel/rwsem.c:131 [ 4.419576] in_atomic(): 1, irqs_disabled(): 0, pid: 1396, name: mkdir [ 4.419579] 2 locks held by mkdir/1396: [ 4.419581] #0: (&type->i_mutex_dir_key#2/1){--..}, at: [] lookup_create+0x2b/0x99 [ 4.419594] #1: (&(&ip->i_lock)->mr_lock/1){--..}, at: [] xfs_ilock+0x60/0x7e [ 4.419605] Pid: 1396, comm: mkdir Not tainted 2.6.27-next-20081017 #2 [ 4.419608] Call Trace: [ 4.419614] [] ? __debug_show_held_locks+0x22/0x24 [ 4.419620] [] __might_sleep+0x120/0x122 [ 4.419625] [] down_write_nested+0x2c/0x7b [ 4.419629] [] xfs_ilock+0x60/0x7e [ 4.419633] [] xfs_iget_core+0x3cc/0x4f1 [ 4.419637] [] ? iget_locked+0xf0/0x125 [ 4.419641] [] xfs_iget+0xeb/0x197 [ 4.419646] [] xfs_trans_iget+0xb4/0x126 [ 4.419651] [] xfs_ialloc+0x9e/0x51e [ 4.419655] [] ? get_parent_ip+0x11/0x41 [ 4.419659] [] xfs_dir_ialloc+0x78/0x26a [ 4.419663] [] ? down_write_nested+0x73/0x7b [ 4.419667] [] xfs_mkdir+0x236/0x438 [ 4.419673] [] xfs_vn_mknod+0xe7/0x13b [ 4.419677] [] xfs_vn_mkdir+0x13/0x15 [ 4.419681] [] vfs_mkdir+0x4b/0x8f [ 4.419685] [] sys_mkdirat+0xa7/0x101 [ 4.419691] [] ? trace_hardirqs_on_thunk+0x3a/0x3f [ 4.419695] [] ? trace_hardirqs_on_caller+0x12c/0x157 [ 4.419700] [] ? do_page_fault+0x394/0x884 [ 4.419704] [] sys_mkdir+0x18/0x1a [ 4.419709] [] system_call_fastpath+0x16/0x1b [ 4.743247] dmesg used greatest stack depth: 2848 bytes left [ 5.930376] bnx2: eth0: using MSI [ 6.056409] BUG: sleeping function called from invalid context at kernel/rwsem.c:131 [ 6.056413] in_atomic(): 1, irqs_disabled(): 0, pid: 1782, name: dhcpcd [ 6.056416] 2 locks held by dhcpcd/1782: [ 6.056418] #0: (&type->i_mutex_dir_key#2){--..}, at: [] do_filp_open+0x178/0x7d5 [ 6.056431] #1: (&(&ip->i_lock)->mr_lock/1){--..}, at: [] xfs_ilock+0x60/0x7e [ 6.056443] Pid: 1782, comm: dhcpcd Not tainted 2.6.27-next-20081017 #2 [ 6.056445] Call Trace: [ 6.056452] [] ? __debug_show_held_locks+0x22/0x24 [ 6.056458] [] __might_sleep+0x120/0x122 [ 6.056464] [] down_write_nested+0x2c/0x7b [ 6.056468] [] xfs_ilock+0x60/0x7e [ 6.056472] [] xfs_iget_core+0x3cc/0x4f1 [ 6.056476] [] ? iget_locked+0xf0/0x125 [ 6.056481] [] xfs_iget+0xeb/0x197 [ 6.056486] [] xfs_trans_iget+0xb4/0x126 [ 6.056491] [] xfs_ialloc+0x9e/0x51e [ 6.056495] [] ? get_parent_ip+0x11/0x41 [ 6.056499] [] xfs_dir_ialloc+0x78/0x26a [ 6.056503] [] ? down_write_nested+0x73/0x7b [ 6.056508] [] xfs_create+0x239/0x438 [ 6.056512] [] ? get_lock_stats+0x2d/0x5c [ 6.056518] [] xfs_vn_mknod+0xce/0x13b [ 6.056522] [] xfs_vn_create+0x10/0x12 [ 6.056526] [] vfs_create+0x5d/0x84 [ 6.056530] [] do_filp_open+0x24e/0x7d5 [ 6.056534] [] ? get_parent_ip+0x11/0x41 [ 6.056539] [] ? sub_preempt_count+0xb0/0xc4 [ 6.056544] [] ? alloc_fd+0x122/0x133 [ 6.056549] [] do_sys_open+0x58/0xdf [ 6.056553] [] sys_open+0x20/0x22 [ 6.056561] [] system_call_fastpath+0x16/0x1b [ 9.098603] bnx2: eth0 NIC Copper Link is Up, 1000 Mbps full duplex, receive & transmit flow control ON [ 17.899872] BUG: sleeping function called from invalid context at kernel/rwsem.c:131 [ 17.899876] in_atomic(): 1, irqs_disabled(): 0, pid: 1791, name: dhcpcd-run-hook [ 17.899879] 2 locks held by dhcpcd-run-hook/1791: [ 17.899881] #0: (&type->i_mutex_dir_key#2){--..}, at: [] do_filp_open+0x178/0x7d5 [ 17.899893] #1: (&(&ip->i_lock)->mr_lock/1){--..}, at: [] xfs_ilock+0x60/0x7e [ 17.899905] Pid: 1791, comm: dhcpcd-run-hook Not tainted 2.6.27-next-20081017 #2 [ 17.899907] Call Trace: [ 17.899914] [] ? __debug_show_held_locks+0x22/0x24 [ 17.899920] [] __might_sleep+0x120/0x122 [ 17.899926] [] down_write_nested+0x2c/0x7b [ 17.899930] [] xfs_ilock+0x60/0x7e [ 17.899934] [] xfs_iget_core+0x3cc/0x4f1 [ 17.899939] [] ? iget_locked+0xf0/0x125 [ 17.899943] [] xfs_iget+0xeb/0x197 [ 17.899953] [] xfs_trans_iget+0xb4/0x126 [ 17.899956] [] xfs_ialloc+0x9e/0x51e [ 17.899959] [] ? get_parent_ip+0x11/0x41 [ 17.899962] [] xfs_dir_ialloc+0x78/0x26a [ 17.899965] [] ? down_write_nested+0x73/0x7b [ 17.899968] [] xfs_create+0x239/0x438 [ 17.899971] [] ? get_lock_stats+0x2d/0x5c [ 17.899975] [] xfs_vn_mknod+0xce/0x13b [ 17.899978] [] xfs_vn_create+0x10/0x12 [ 17.899981] [] vfs_create+0x5d/0x84 [ 17.899984] [] do_filp_open+0x24e/0x7d5 [ 17.899987] [] ? get_parent_ip+0x11/0x41 [ 17.899990] [] ? sub_preempt_count+0xb0/0xc4 [ 17.899993] [] ? alloc_fd+0x122/0x133 [ 17.899997] [] do_sys_open+0x58/0xdf [ 17.900002] [] ? sigprocmask+0x37/0xd7 [ 17.900004] [] sys_open+0x20/0x22 [ 17.900008] [] system_call_fastpath+0x16/0x1b [ 18.190958] Adding 3911788k swap on /dev/sda1. Priority:-1 extents:1 across:3911788k [ 30.773375] CPA self-test: [ 30.780146] 4k 523088 large 0 gb 0 x 262144[ffff880000000000-ffff88003ffff000] miss 0 [ 30.792087] 4k 523088 large 0 gb 0 x 262144[ffff880000000000-ffff88003ffff000] miss 0 [ 30.803460] 4k 523088 large 0 gb 0 x 262144[ffff880000000000-ffff88003ffff000] miss 0 [ 30.803463] ok. [ 3846.588515] BUG: sleeping function called from invalid context at kernel/rwsem.c:131 [ 3846.588519] in_atomic(): 1, irqs_disabled(): 0, pid: 2005, name: screen [ 3846.588523] 2 locks held by screen/2005: [ 3846.588524] #0: (&type->i_mutex_dir_key#2/1){--..}, at: [] lookup_create+0x2b/0x99 [ 3846.588538] #1: (&(&ip->i_lock)->mr_lock/1){--..}, at: [] xfs_ilock+0x60/0x7e [ 3846.588549] Pid: 2005, comm: screen Not tainted 2.6.27-next-20081017 #2 [ 3846.588552] Call Trace: [ 3846.588559] [] ? __debug_show_held_locks+0x22/0x24 [ 3846.588565] [] __might_sleep+0x120/0x122 [ 3846.588570] [] down_write_nested+0x2c/0x7b [ 3846.588574] [] xfs_ilock+0x60/0x7e [ 3846.588578] [] xfs_iget_core+0x3cc/0x4f1 [ 3846.588582] [] ? iget_locked+0xf0/0x125 [ 3846.588586] [] xfs_iget+0xeb/0x197 [ 3846.588591] [] xfs_trans_iget+0xb4/0x126 [ 3846.588596] [] xfs_ialloc+0x9e/0x51e [ 3846.588599] [] ? get_parent_ip+0x11/0x41 [ 3846.588604] [] xfs_dir_ialloc+0x78/0x26a [ 3846.588607] [] ? down_write_nested+0x73/0x7b [ 3846.588612] [] xfs_create+0x239/0x438 [ 3846.588617] [] xfs_vn_mknod+0xce/0x13b [ 3846.588621] [] vfs_mknod+0x75/0x9a [ 3846.588625] [] sys_mknodat+0x186/0x1e5 [ 3846.588632] [] ? trace_hardirqs_on_thunk+0x3a/0x3f [ 3846.588636] [] ? trace_hardirqs_on_caller+0x12c/0x157 [ 3846.588640] [] sys_mknod+0x1a/0x1c [ 3846.588644] [] system_call_fastpath+0x16/0x1b -- 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/