Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758717AbYBMNyW (ORCPT ); Wed, 13 Feb 2008 08:54:22 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753834AbYBMNyO (ORCPT ); Wed, 13 Feb 2008 08:54:14 -0500 Received: from rv-out-0910.google.com ([209.85.198.184]:20595 "EHLO rv-out-0910.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753671AbYBMNyN (ORCPT ); Wed, 13 Feb 2008 08:54:13 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=c9AY3ROIwOvH5mk+mpZkeA0YyXRKXmTInTKx55z6alMzX5YKkPM79fuzsSYxYtVSqr6LMlTeh5EeKRQLrDQ3odHcN2MGkGuzcQzav7KbQQUvaeJDGrpeythBc7DBvbcosXE7gpa+RkW0It0JE3CdLV/ouwBR1FiA1W6ewmOTb0Q= Message-ID: Date: Wed, 13 Feb 2008 14:54:12 +0100 From: "Zdenek Kabelac" To: linux-kernel@vger.kernel.org Subject: losetup INFO: possible circular locking dependency detected MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 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: 6102 Lines: 138 Hi I'm getting this INFO message from losetup I'm using in my scripts: if more info is needed from my side just ask. (haven't seen this with 2.6.24..., using T61, 64bit kernel) Bye Zdenek ======================================================= [ INFO: possible circular locking dependency detected ] 2.6.25-rc1 #29 ------------------------------------------------------- losetup/26595 is trying to acquire lock: (&bdev->bd_mutex){--..}, at: [] __blkdev_put+0x38/0x1e0 but task is already holding lock: (&lo->lo_ctl_mutex){--..}, at: [] lo_ioctl+0x4e/0xaf0 [loop] which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #1 (&lo->lo_ctl_mutex){--..}: [] __lock_acquire+0xf70/0x1000 [] lo_open+0x34/0x50 [loop] [] lock_acquire+0xa8/0xf0 [] lo_open+0x34/0x50 [loop] [] mutex_lock_nested+0xcc/0x370 [] lo_open+0x34/0x50 [loop] [] lo_open+0x34/0x50 [loop] [] do_open+0xa9/0x350 [] _spin_unlock+0x30/0x60 [] blkdev_open+0x3d/0x90 [] __dentry_open+0x110/0x280 [] blkdev_open+0x0/0x90 [] nameidata_to_filp+0x44/0x60 [] do_filp_open+0x4a/0x50 [] get_unused_fd_flags+0xed/0x140 [] do_sys_open+0x76/0x100 [] sys_open+0x1b/0x20 [] tracesys+0xdc/0xe1 [] 0xffffffffffffffff -> #0 (&bdev->bd_mutex){--..}: [] __lock_acquire+0xe7d/0x1000 [] trace_hardirqs_on+0x139/0x1a0 [] __blkdev_put+0x38/0x1e0 [] lock_acquire+0xa8/0xf0 [] __blkdev_put+0x38/0x1e0 [] mutex_lock_nested+0xcc/0x370 [] __blkdev_put+0x38/0x1e0 [] native_sched_clock+0x98/0xa0 [] __blkdev_put+0x38/0x1e0 [] blkdev_put+0xb/0x10 [] blkdev_close+0x28/0x40 [] __fput+0xd0/0x1b0 [] fput+0x1d/0x30 [] loop_clr_fd+0x1ad/0x1c0 [loop] [] lo_ioctl+0x16f/0xaf0 [loop] [] __d_lookup+0xef/0x180 [] native_sched_clock+0x98/0xa0 [] native_sched_clock+0x98/0xa0 [] __lock_acquire+0x33d/0x1000 [] __lock_acquire+0x33d/0x1000 [] get_lock_stats+0x16/0x60 [] native_sched_clock+0x98/0xa0 [] get_lock_stats+0x16/0x60 [] put_lock_stats+0xe/0x30 [] mutex_unlock+0x9/0x10 [] blkdev_driver_ioctl+0x8d/0xa0 [] blkdev_ioctl+0x27d/0x7e0 [] native_sched_clock+0x98/0xa0 [] __lock_acquire+0x33d/0x1000 [] native_sched_clock+0x98/0xa0 [] get_lock_stats+0x16/0x60 [] block_ioctl+0x1b/0x20 [] vfs_ioctl+0x31/0xa0 [] do_vfs_ioctl+0x283/0x2f0 [] sys_ioctl+0x99/0xa0 [] tracesys+0xdc/0xe1 [] 0xffffffffffffffff other info that might help us debug this: 1 lock held by losetup/26595: #0: (&lo->lo_ctl_mutex){--..}, at: [] lo_ioctl+0x4e/0xaf0 [loop] stack backtrace: Pid: 26595, comm: losetup Not tainted 2.6.25-rc1 #29 Call Trace: [] print_circular_bug_tail+0x84/0x90 [] __lock_acquire+0xe7d/0x1000 [] ? trace_hardirqs_on+0x139/0x1a0 [] ? __blkdev_put+0x38/0x1e0 [] lock_acquire+0xa8/0xf0 [] ? __blkdev_put+0x38/0x1e0 [] mutex_lock_nested+0xcc/0x370 [] ? __blkdev_put+0x38/0x1e0 [] ? native_sched_clock+0x98/0xa0 [] __blkdev_put+0x38/0x1e0 [] blkdev_put+0xb/0x10 [] blkdev_close+0x28/0x40 [] __fput+0xd0/0x1b0 [] fput+0x1d/0x30 [] :loop:loop_clr_fd+0x1ad/0x1c0 [] :loop:lo_ioctl+0x16f/0xaf0 [] ? __d_lookup+0xef/0x180 [] ? native_sched_clock+0x98/0xa0 [] ? native_sched_clock+0x98/0xa0 [] ? __lock_acquire+0x33d/0x1000 [] ? __lock_acquire+0x33d/0x1000 [] ? get_lock_stats+0x16/0x60 [] ? native_sched_clock+0x98/0xa0 [] ? get_lock_stats+0x16/0x60 [] ? put_lock_stats+0xe/0x30 [] ? mutex_unlock+0x9/0x10 [] blkdev_driver_ioctl+0x8d/0xa0 [] blkdev_ioctl+0x27d/0x7e0 [] ? native_sched_clock+0x98/0xa0 [] ? __lock_acquire+0x33d/0x1000 [] ? native_sched_clock+0x98/0xa0 [] ? get_lock_stats+0x16/0x60 [] block_ioctl+0x1b/0x20 [] vfs_ioctl+0x31/0xa0 [] do_vfs_ioctl+0x283/0x2f0 [] sys_ioctl+0x99/0xa0 [] tracesys+0xdc/0xe1 -- 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/