Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760721AbXEMUu7 (ORCPT ); Sun, 13 May 2007 16:50:59 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1760434AbXEMUuv (ORCPT ); Sun, 13 May 2007 16:50:51 -0400 Received: from ug-out-1314.google.com ([66.249.92.172]:51175 "EHLO ug-out-1314.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759418AbXEMUut (ORCPT ); Sun, 13 May 2007 16:50:49 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:date:from:to:cc:subject:message-id:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; b=la28uMpAPSI8HWpjW4CHYDE0CABrGH7AG1UJIAeECJil5OVkl3odhfW1qIJvebKUQ1thnmZoDlB5N9t2NP2hrJWclR1O8+onltnmEhQLt0QfmCbcrOL2De8IGL0MX81HgX1fOBZXDItzl0uOVCCf9JUH0v6DEXjuCOK12GIltl4= Date: Mon, 14 May 2007 00:51:21 +0400 From: Alexey Dobriyan To: Linus Torvalds Cc: linux-kernel@vger.kernel.org, viro@zeniv.linux.org.uk Subject: 2.6.22-rc1: loop.c Message-ID: <20070513205121.GA5814@martell.zuzino.mipt.ru> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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: 5728 Lines: 149 On Sat, May 12, 2007 at 08:20:35PM -0700, Linus Torvalds wrote: > Ok, the merge window has closed, and 2.6.22-rc1 is out there. 1. Should loop.c create max_loop or 8 devices for compatability? I'm asking because quite a few people after upgrade will try to find out where the hell is right place to create device nodes like loop0 in distro of choice. Offending line in my setup is /portage /usr/portage auto loop,noatime 0 0 2. After (so far) manual invocations of mknod and mount -a, lockdep spit the following: ======================================================= [ INFO: possible circular locking dependency detected ] 2.6.22-rc1 #1 ------------------------------------------------------- mount/6168 is trying to acquire lock: (block_subsys_lock){--..}, at: [] kobj_map+0x94/0xf3 but task is already holding lock: (loop_devices_mutex){--..}, at: [] loop_lock+0xd/0x13 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #1 (loop_devices_mutex){--..}: [] add_lock_to_list+0x68/0x8d [] debug_check_no_locks_freed+0x10a/0x127 [] __lock_acquire+0x993/0xafa [] loop_lock+0xd/0x13 [] lock_acquire+0x54/0x6b [] loop_lock+0xd/0x13 [] __mutex_lock_slowpath+0xd9/0x254 [] loop_lock+0xd/0x13 [] __mutex_lock_slowpath+0x24c/0x254 [] kobj_lookup+0x34/0xbe [] loop_lock+0xd/0x13 [] kobj_lookup+0x7e/0xbe [] loop_probe+0x0/0x12e [] blkdev_open+0x0/0x4f [] get_gendisk+0x11/0x1c [] do_open+0x2e/0x261 [] blkdev_open+0x0/0x4f [] _spin_unlock+0x28/0x42 [] blkdev_open+0x0/0x4f [] blkdev_open+0x27/0x4f [] __dentry_open+0x9a/0x142 [] nameidata_to_filp+0x24/0x33 [] do_filp_open+0x37/0x3e [] get_unused_fd+0x1e/0xaf [] _spin_unlock+0x28/0x42 [] get_unused_fd+0xa5/0xaf [] do_sys_open+0x3c/0x6f [] sys_open+0x1c/0x20 [] sysenter_past_esp+0x5f/0x99 [] 0xffffffff -> #0 (block_subsys_lock){--..}: [] __lock_acquire+0x87f/0xafa [] _spin_unlock_irqrestore+0x37/0x5d [] lock_acquire+0x54/0x6b [] kobj_map+0x94/0xf3 [] __mutex_lock_slowpath+0xd9/0x254 [] kobj_map+0x94/0xf3 [] trace_hardirqs_on+0x118/0x13b [] debug_check_no_locks_freed+0x10a/0x127 [] kobj_map+0x94/0xf3 [] blk_register_region+0x2f/0x34 [] exact_match+0x0/0x4 [] exact_lock+0x0/0x13 [] add_disk+0x2f/0x41 [] exact_match+0x0/0x4 [] exact_lock+0x0/0x13 [] loop_probe+0xd7/0x12e [] kobj_lookup+0x99/0xbe [] loop_probe+0x0/0x12e [] blkdev_open+0x0/0x4f [] get_gendisk+0x11/0x1c [] do_open+0x2e/0x261 [] blkdev_open+0x0/0x4f [] _spin_unlock+0x28/0x42 [] blkdev_open+0x0/0x4f [] blkdev_open+0x27/0x4f [] __dentry_open+0x9a/0x142 [] nameidata_to_filp+0x24/0x33 [] do_filp_open+0x37/0x3e [] get_unused_fd+0x1e/0xaf [] _spin_unlock+0x28/0x42 [] get_unused_fd+0xa5/0xaf [] do_sys_open+0x3c/0x6f [] sys_open+0x1c/0x20 [] sysenter_past_esp+0x5f/0x99 [] 0xffffffff other info that might help us debug this: 1 lock held by mount/6168: #0: (loop_devices_mutex){--..}, at: [] loop_lock+0xd/0x13 stack backtrace: [] print_circular_bug_tail+0x5e/0x66 [] __lock_acquire+0x87f/0xafa [] _spin_unlock_irqrestore+0x37/0x5d [] lock_acquire+0x54/0x6b [] kobj_map+0x94/0xf3 [] __mutex_lock_slowpath+0xd9/0x254 [] kobj_map+0x94/0xf3 [] trace_hardirqs_on+0x118/0x13b [] debug_check_no_locks_freed+0x10a/0x127 [] kobj_map+0x94/0xf3 [] blk_register_region+0x2f/0x34 [] exact_match+0x0/0x4 [] exact_lock+0x0/0x13 [] add_disk+0x2f/0x41 [] exact_match+0x0/0x4 [] exact_lock+0x0/0x13 [] loop_probe+0xd7/0x12e [] kobj_lookup+0x99/0xbe [] loop_probe+0x0/0x12e [] blkdev_open+0x0/0x4f [] get_gendisk+0x11/0x1c [] do_open+0x2e/0x261 [] blkdev_open+0x0/0x4f [] _spin_unlock+0x28/0x42 [] blkdev_open+0x0/0x4f [] blkdev_open+0x27/0x4f [] __dentry_open+0x9a/0x142 [] nameidata_to_filp+0x24/0x33 [] do_filp_open+0x37/0x3e [] get_unused_fd+0x1e/0xaf [] _spin_unlock+0x28/0x42 [] get_unused_fd+0xa5/0xaf [] do_sys_open+0x3c/0x6f [] sys_open+0x1c/0x20 [] sysenter_past_esp+0x5f/0x99 ======================= EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended - 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/