From: "J. Bruce Fields" Subject: nfs client lockdep warning Date: Thu, 8 Jan 2009 15:36:58 -0500 Message-ID: <20090108203658.GE19312@fieldses.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: linux-nfs@vger.kernel.org To: Trond Myklebust Return-path: Received: from mail.fieldses.org ([141.211.133.115]:57722 "EHLO fieldses.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753146AbZAHUhA (ORCPT ); Thu, 8 Jan 2009 15:37:00 -0500 Sender: linux-nfs-owner@vger.kernel.org List-ID: I'm seeing this on my test client; I haven't tried to investigate. --b. Jan 8 15:29:17 ying3 kernel: ======================================================= Jan 8 15:29:17 ying3 kernel: [ INFO: possible circular locking dependency detected ] Jan 8 15:29:17 ying3 kernel: 2.6.28-07532-g393a64e #71 Jan 8 15:29:17 ying3 kernel: ------------------------------------------------------- Jan 8 15:29:17 ying3 kernel: tlocklfs/3527 is trying to acquire lock: Jan 8 15:29:17 ying3 kernel: (sk_lock-AF_INET-RPC){--..}, at: [] tcp_sendmsg+0x1c/0xa80 Jan 8 15:29:17 ying3 kernel: Jan 8 15:29:17 ying3 kernel: but task is already holding lock: Jan 8 15:29:17 ying3 kernel: (&mm->mmap_sem){----}, at: [] do_page_fault+0xc7/0x820 Jan 8 15:29:17 ying3 kernel: Jan 8 15:29:17 ying3 kernel: which lock already depends on the new lock. Jan 8 15:29:17 ying3 kernel: Jan 8 15:29:17 ying3 kernel: Jan 8 15:29:17 ying3 kernel: the existing dependency chain (in reverse order) is: Jan 8 15:29:17 ying3 kernel: Jan 8 15:29:17 ying3 kernel: -> #1 (&mm->mmap_sem){----}: Jan 8 15:29:17 ying3 kernel: [] __lock_acquire+0xfcd/0x18e0 Jan 8 15:29:17 ying3 kernel: [] lock_acquire+0x5c/0x80 Jan 8 15:29:17 ying3 kernel: [] might_fault+0x7b/0xa0 Jan 8 15:29:17 ying3 kernel: [] copy_from_user+0x36/0x90 Jan 8 15:29:17 ying3 kernel: [] memcpy_fromiovecend+0x60/0x90 Jan 8 15:29:17 ying3 kernel: [] ip_generic_getfrag+0x9f/0xb0 Jan 8 15:29:17 ying3 kernel: [] ip_append_data+0x6bb/0x950 Jan 8 15:29:17 ying3 kernel: [] udp_sendmsg+0x2bd/0x680 Jan 8 15:29:17 ying3 kernel: [] inet_sendmsg+0x39/0x70 Jan 8 15:29:17 ying3 kernel: [] sock_sendmsg+0xd6/0x100 Jan 8 15:29:17 ying3 kernel: [] kernel_sendmsg+0x35/0x50 Jan 8 15:29:17 ying3 kernel: [] xs_send_kvec+0xa8/0xb0 Jan 8 15:29:17 ying3 kernel: [] xs_sendpages+0x71/0x210 Jan 8 15:29:17 ying3 kernel: [] xs_udp_send_request+0x40/0x120 Jan 8 15:29:17 ying3 kernel: [] xprt_transmit+0x6f/0x280 Jan 8 15:29:17 ying3 kernel: [] call_transmit+0x17f/0x250 Jan 8 15:29:17 ying3 kernel: [] __rpc_execute+0x73/0x250 Jan 8 15:29:17 ying3 kernel: [] rpc_execute+0x1e/0x30 Jan 8 15:29:17 ying3 kernel: [] rpc_run_task+0x35/0x70 Jan 8 15:29:17 ying3 kernel: [] rpc_call_sync+0x40/0x70 Jan 8 15:29:17 ying3 kernel: [] rpcb_register_call+0xa2/0xd0 Jan 8 15:29:17 ying3 kernel: [] rpcb_register+0x92/0xe0 Jan 8 15:29:17 ying3 kernel: [] svc_unregister+0x66/0xe0 Jan 8 15:29:17 ying3 kernel: [] __svc_create+0x1c6/0x1f0 Jan 8 15:29:17 ying3 kernel: [] svc_create+0x23/0x30 Jan 8 15:29:17 ying3 kernel: [] nfs_callback_up+0x73/0x1b0 Jan 8 15:29:17 ying3 kernel: [] nfs_get_client+0x2d5/0x410 Jan 8 15:29:17 ying3 kernel: [] nfs4_set_client+0x45/0x1e0 Jan 8 15:29:17 ying3 kernel: [] nfs4_create_server+0xae/0x430 Jan 8 15:29:17 ying3 kernel: [] nfs4_get_sb+0x34a/0x5d0 Jan 8 15:29:17 ying3 kernel: [] vfs_kern_mount+0x5e/0x130 Jan 8 15:29:17 ying3 kernel: [] do_kern_mount+0x3e/0xe0 Jan 8 15:29:17 ying3 kernel: [] do_mount+0x434/0x7b0 Jan 8 15:29:17 ying3 kernel: [] sys_mount+0x91/0xc0 Jan 8 15:29:17 ying3 kernel: [] sysenter_do_call+0x12/0x35 Jan 8 15:29:17 ying3 kernel: [] 0xffffffff Jan 8 15:29:17 ying3 kernel: Jan 8 15:29:17 ying3 kernel: -> #0 (sk_lock-AF_INET-RPC){--..}: Jan 8 15:29:17 ying3 kernel: [] __lock_acquire+0x11fd/0x18e0 Jan 8 15:29:17 ying3 kernel: [] lock_acquire+0x5c/0x80 Jan 8 15:29:17 ying3 kernel: [] lock_sock_nested+0xc4/0xe0 Jan 8 15:29:17 ying3 kernel: [] tcp_sendmsg+0x1c/0xa80 Jan 8 15:29:17 ying3 kernel: [] sock_sendmsg+0xd6/0x100 Jan 8 15:29:17 ying3 kernel: [] kernel_sendmsg+0x35/0x50 Jan 8 15:29:17 ying3 kernel: [] xs_send_kvec+0xa8/0xb0 Jan 8 15:29:17 ying3 kernel: [] xs_sendpages+0x71/0x210 Jan 8 15:29:17 ying3 kernel: [] xs_tcp_send_request+0x58/0x170 Jan 8 15:29:17 ying3 kernel: [] xprt_transmit+0x6f/0x280 Jan 8 15:29:17 ying3 kernel: [] call_transmit+0x17f/0x250 Jan 8 15:29:17 ying3 kernel: [] __rpc_execute+0x73/0x250 Jan 8 15:29:17 ying3 kernel: [] rpc_execute+0x1e/0x30 Jan 8 15:29:17 ying3 kernel: [] rpc_run_task+0x35/0x70 Jan 8 15:29:17 ying3 kernel: [] nfs_read_rpcsetup+0x174/0x1f0 Jan 8 15:29:17 ying3 kernel: [] nfs_pagein_one+0x9e/0xe0 Jan 8 15:29:17 ying3 kernel: [] nfs_pageio_doio+0x3a/0x80 Jan 8 15:29:17 ying3 kernel: [] nfs_pageio_complete+0xd/0x10 Jan 8 15:29:17 ying3 kernel: [] nfs_readpages+0xec/0x1d0 Jan 8 15:29:17 ying3 kernel: [] __do_page_cache_readahead+0x1bc/0x280 Jan 8 15:29:17 ying3 kernel: [] do_page_cache_readahead+0x50/0x70 Jan 8 15:29:17 ying3 kernel: [] filemap_fault+0x31f/0x470 Jan 8 15:29:17 ying3 kernel: [] __do_fault+0x40/0x3d0 Jan 8 15:29:17 ying3 kernel: [] handle_mm_fault+0x111/0x610 Jan 8 15:29:17 ying3 kernel: [] do_page_fault+0x215/0x820 Jan 8 15:29:17 ying3 kernel: [] error_code+0x6f/0x74 Jan 8 15:29:17 ying3 kernel: [] load_elf_binary+0x8e5/0x1a20 Jan 8 15:29:17 ying3 kernel: [] search_binary_handler+0x173/0x2f0 Jan 8 15:29:17 ying3 kernel: [] do_execve+0x1cd/0x220 Jan 8 15:29:17 ying3 kernel: [] sys_execve+0x43/0x70 Jan 8 15:29:17 ying3 kernel: [] sysenter_do_call+0x12/0x35 Jan 8 15:29:17 ying3 kernel: [] 0xffffffff Jan 8 15:29:17 ying3 kernel: Jan 8 15:29:17 ying3 kernel: other info that might help us debug this: Jan 8 15:29:17 ying3 kernel: Jan 8 15:29:17 ying3 kernel: 2 locks held by tlocklfs/3527: Jan 8 15:29:17 ying3 kernel: #0: (&p->cred_exec_mutex){--..}, at: [] do_execve+0x6b/0x220 Jan 8 15:29:17 ying3 kernel: #1: (&mm->mmap_sem){----}, at: [] do_page_fault+0xc7/0x820 Jan 8 15:29:17 ying3 kernel: Jan 8 15:29:17 ying3 kernel: stack backtrace: Jan 8 15:29:17 ying3 kernel: Pid: 3527, comm: tlocklfs Not tainted 2.6.28-07532-g393a64e #71 Jan 8 15:29:17 ying3 kernel: Call Trace: Jan 8 15:29:17 ying3 kernel: [] ? printk+0x1d/0x1f Jan 8 15:29:17 ying3 kernel: [] print_circular_bug_tail+0xc8/0xd0 Jan 8 15:29:17 ying3 kernel: [] __lock_acquire+0x11fd/0x18e0 Jan 8 15:29:17 ying3 kernel: [] ? lock_sock_nested+0x2c/0xe0 Jan 8 15:29:17 ying3 kernel: [] lock_acquire+0x5c/0x80 Jan 8 15:29:17 ying3 kernel: [] ? tcp_sendmsg+0x1c/0xa80 Jan 8 15:29:17 ying3 kernel: [] lock_sock_nested+0xc4/0xe0 Jan 8 15:29:17 ying3 kernel: [] ? tcp_sendmsg+0x1c/0xa80 Jan 8 15:29:17 ying3 kernel: [] ? free_hot_cold_page+0x174/0x2a0 Jan 8 15:29:17 ying3 kernel: [] tcp_sendmsg+0x1c/0xa80 Jan 8 15:29:17 ying3 kernel: [] ? find_usage_backwards+0xaa/0x120 Jan 8 15:29:17 ying3 kernel: [] ? free_pages+0x46/0x50 Jan 8 15:29:17 ying3 kernel: [] ? find_usage_backwards+0xaa/0x120 Jan 8 15:29:17 ying3 kernel: [] ? find_usage_backwards+0xaa/0x120 Jan 8 15:29:17 ying3 kernel: [] sock_sendmsg+0xd6/0x100 Jan 8 15:29:17 ying3 kernel: [] ? autoremove_wake_function+0x0/0x50 Jan 8 15:29:17 ying3 kernel: [] ? __lock_acquire+0xe60/0x18e0 Jan 8 15:29:17 ying3 kernel: [] ? __lock_acquire+0xe60/0x18e0 Jan 8 15:29:17 ying3 kernel: [] kernel_sendmsg+0x35/0x50 Jan 8 15:29:17 ying3 kernel: [] xs_send_kvec+0xa8/0xb0 Jan 8 15:29:17 ying3 kernel: [] xs_sendpages+0x71/0x210 Jan 8 15:29:17 ying3 kernel: [] ? debug_object_deactivate+0xbf/0x100 Jan 8 15:29:17 ying3 kernel: [] xs_tcp_send_request+0x58/0x170 Jan 8 15:29:17 ying3 kernel: [] xprt_transmit+0x6f/0x280 Jan 8 15:29:17 ying3 kernel: [] ? nfs4_xdr_enc_read+0x0/0x110 Jan 8 15:29:17 ying3 kernel: [] call_transmit+0x17f/0x250 Jan 8 15:29:17 ying3 kernel: [] __rpc_execute+0x73/0x250 Jan 8 15:29:17 ying3 kernel: [] ? _spin_unlock+0x2c/0x50 Jan 8 15:29:17 ying3 kernel: [] ? rpc_set_active+0x67/0x80 Jan 8 15:29:17 ying3 kernel: [] rpc_execute+0x1e/0x30 Jan 8 15:29:17 ying3 kernel: [] rpc_run_task+0x35/0x70 Jan 8 15:29:17 ying3 kernel: [] nfs_read_rpcsetup+0x174/0x1f0 Jan 8 15:29:17 ying3 kernel: [] ? kmem_cache_alloc+0xd1/0x140 Jan 8 15:29:17 ying3 kernel: [] ? mempool_alloc_slab+0x13/0x20 Jan 8 15:29:17 ying3 last message repeated 2 times Jan 8 15:29:17 ying3 kernel: [] nfs_pagein_one+0x9e/0xe0 Jan 8 15:29:17 ying3 kernel: [] nfs_pageio_doio+0x3a/0x80 Jan 8 15:29:17 ying3 kernel: [] nfs_pageio_complete+0xd/0x10 Jan 8 15:29:17 ying3 kernel: [] nfs_readpages+0xec/0x1d0 Jan 8 15:29:17 ying3 kernel: [] ? __alloc_pages_internal+0xc3/0x4d0 Jan 8 15:29:17 ying3 kernel: [] ? nfs_pagein_one+0x0/0xe0 Jan 8 15:29:17 ying3 kernel: [] ? nfs_readpages+0x0/0x1d0 Jan 8 15:29:17 ying3 kernel: [] __do_page_cache_readahead+0x1bc/0x280 Jan 8 15:29:17 ying3 kernel: [] ? __do_page_cache_readahead+0xc5/0x280 Jan 8 15:29:17 ying3 kernel: [] do_page_cache_readahead+0x50/0x70 Jan 8 15:29:17 ying3 kernel: [] filemap_fault+0x31f/0x470 Jan 8 15:29:17 ying3 kernel: [] __do_fault+0x40/0x3d0 Jan 8 15:29:17 ying3 kernel: [] ? _spin_unlock+0x2c/0x50 Jan 8 15:29:17 ying3 kernel: [] handle_mm_fault+0x111/0x610 Jan 8 15:29:17 ying3 kernel: [] ? do_page_fault+0xc7/0x820 Jan 8 15:29:17 ying3 kernel: [] ? down_read_trylock+0x5d/0x70 Jan 8 15:29:17 ying3 kernel: [] do_page_fault+0x215/0x820 Jan 8 15:29:17 ying3 kernel: [] ? prio_tree_insert+0x211/0x290 Jan 8 15:29:17 ying3 kernel: [] ? _spin_unlock+0x2c/0x50 Jan 8 15:29:17 ying3 kernel: [] ? vma_link+0x82/0xa0 Jan 8 15:29:17 ying3 kernel: [] ? mmap_region+0x2d2/0x4f0 Jan 8 15:29:17 ying3 kernel: [] ? might_fault+0x4a/0xa0 Jan 8 15:29:17 ying3 kernel: [] ? do_page_fault+0x0/0x820 Jan 8 15:29:17 ying3 kernel: [] error_code+0x6f/0x74 Jan 8 15:29:17 ying3 kernel: [] ? __free_pages_ok+0x27b/0x480 Jan 8 15:29:17 ying3 kernel: [] ? clear_user+0x47/0x60 Jan 8 15:29:17 ying3 kernel: [] load_elf_binary+0x8e5/0x1a20 Jan 8 15:29:17 ying3 kernel: [] ? mark_held_locks+0x41/0x80 Jan 8 15:29:17 ying3 kernel: [] ? _spin_unlock_irqrestore+0x55/0x70 Jan 8 15:29:17 ying3 kernel: [] ? trace_hardirqs_on_caller+0x141/0x1a0 Jan 8 15:29:17 ying3 kernel: [] ? search_binary_handler+0x5f/0x2f0 Jan 8 15:29:17 ying3 kernel: [] search_binary_handler+0x173/0x2f0 Jan 8 15:29:17 ying3 kernel: [] ? load_elf_binary+0x0/0x1a20 Jan 8 15:29:17 ying3 kernel: [] do_execve+0x1cd/0x220 Jan 8 15:29:17 ying3 kernel: [] sys_execve+0x43/0x70 Jan 8 15:29:17 ying3 kernel: [] sysenter_do_call+0x12/0x35 Jan 8 15:29:26 ying3 kernel: tlocklfs used greatest stack depth: 4252 bytes left Jan 8 15:29:55 ying3 kernel: aoe: 00188b809a6e e2.3 v400f has 2048000 sectors Jan 8 15:29:55 ying3 kernel: etherd/e2.3: unknown partition table