From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752486AbZLWEuZ (ORCPT ); Tue, 22 Dec 2009 23:50:25 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751289AbZLWEuW (ORCPT ); Tue, 22 Dec 2009 23:50:22 -0500 Received: from mail-pw0-f42.google.com ([209.85.160.42]:49059 "EHLO mail-pw0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751256AbZLWEuV (ORCPT ); Tue, 22 Dec 2009 23:50:21 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type; b=dhoqR6wskIp7Sl7XBdIXUYWxVSq8ItUh4g3IB+NgfYs82lyk2FsmENhmc57PVVlQDj BbXqh2fgPME24sCvunuHaZrB2WKbKxVHxEOVu2u3uzihA+PFzi+DiTx4xc/x+Qpo6UR+ OHRtH0Ma2XiUn6KdFv+M1og9VtqKo1JEVqGP0= MIME-Version: 1.0 Date: Tue, 22 Dec 2009 20:50:21 -0800 X-Google-Sender-Auth: b5bb78acba92c47a Message-ID: <86802c440912222050o2d634667p4702a87171d045ed@mail.gmail.com> Subject: lockdep with reiserfs From: Yinghai Lu To: Ingo Molnar , Andrew Morton Cc: Linux Kernel Mailing List Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org x:~ # mount /dev/sda2 /xx [ 277.586941] ======================================================= [ 277.594680] [ INFO: possible circular locking dependency detected ] [ 277.601299] 2.6.33-rc1-tip-yh-00304-g97a015d-dirty #1007 [ 277.605492] ------------------------------------------------------- [ 277.622611] mount/19427 is trying to acquire lock: [ 277.627353] (&journal->j_mutex){+.+...}, at: [] do_journal_begin_r+0x9f/0x308 [ 277.645049] [ 277.645050] but task is already holding lock: [ 277.659112] (&REISERFS_SB(s)->lock){+.+.+.}, at: [] reiserfs_write_lock+0x30/0x42 [ 277.677168] [ 277.677169] which lock already depends on the new lock. [ 277.677170] [ 277.685840] [ 277.685841] the existing dependency chain (in reverse order) is: [ 277.700845] [ 277.700845] -> #1 (&REISERFS_SB(s)->lock){+.+.+.}: [ 277.707089] [] check_prev_add+0x3ca/0x583 [ 277.723457] [] validate_chain+0x45d/0x567 [ 277.738331] [] __lock_acquire+0x7b0/0x838 [ 277.745738] [] lock_acquire+0xc4/0xe1 [ 277.758903] [] mutex_lock_nested+0x68/0x2d2 [ 277.765408] [] reiserfs_write_lock+0x30/0x42 [ 277.780623] [] do_journal_begin_r+0xa7/0x308 [ 277.788070] [] journal_begin+0xcb/0x10f [ 277.801530] [] reiserfs_fill_super+0x6f6/0xa04 [ 277.818144] [] get_sb_bdev+0x134/0x17f [ 277.824414] [] get_super_block+0x18/0x1a [ 277.838452] [] vfs_kern_mount+0x5b/0xce [ 277.843123] [] do_kern_mount+0x4c/0xec [ 277.858708] [] do_mount+0x1c7/0x228 [ 277.865063] [] sys_mount+0x84/0xc4 [ 277.879329] [] system_call_fastpath+0x16/0x1b [ 277.885762] [ 277.885763] -> #0 (&journal->j_mutex){+.+...}: [ 277.900836] [] check_prev_add+0xf9/0x583 [ 277.905844] [] validate_chain+0x45d/0x567 [ 277.921016] [] __lock_acquire+0x7b0/0x838 [ 277.937549] [] lock_acquire+0xc4/0xe1 [ 277.941772] [] mutex_lock_nested+0x68/0x2d2 [ 277.958127] [] do_journal_begin_r+0x9f/0x308 [ 277.964631] [] journal_begin+0xcb/0x10f [ 277.978818] [] reiserfs_delete_inode+0x96/0x141 [ 277.984215] [] generic_delete_inode+0xe1/0x174 [ 278.002166] [] generic_drop_inode+0x1c/0x67 [ 278.016829] [] iput+0x66/0x6a [ 278.022807] [] finish_unfinished+0x47a/0x529 [ 278.037406] [] reiserfs_fill_super+0x896/0xa04 [ 278.042843] [] get_sb_bdev+0x134/0x17f [ 278.058832] [] get_super_block+0x18/0x1a [ 278.064476] [] vfs_kern_mount+0x5b/0xce [ 278.079763] [] do_kern_mount+0x4c/0xec [ 278.085409] [] do_mount+0x1c7/0x228 [ 278.099487] [] sys_mount+0x84/0xc4 [ 278.104554] [] system_call_fastpath+0x16/0x1b [ 278.120594] [ 278.120594] other info that might help us debug this: [ 278.120595] [ 278.137861] 2 locks held by mount/19427: [ 278.142048] #0: (&type->s_umount_key#17/1){+.+.+.}, at: [] alloc_super+0x153/0x227 [ 278.161051] #1: (&REISERFS_SB(s)->lock){+.+.+.}, at: [] reiserfs_write_lock+0x30/0x42 [ 278.178694] [ 278.178694] stack backtrace: [ 278.183421] Pid: 19427, comm: mount Not tainted 2.6.33-rc1-tip-yh-00304-g97a015d-dirty #1007 [ 278.200418] Call Trace: [ 278.203357] [] print_circular_bug+0xb3/0xc2 [ 278.218174] [] check_prev_add+0xf9/0x583 [ 278.223784] [] validate_chain+0x45d/0x567 [ 278.238230] [] __lock_acquire+0x7b0/0x838 [ 278.244997] [] ? __mutex_unlock_slowpath+0x112/0x11e [ 278.259664] [] lock_acquire+0xc4/0xe1 [ 278.264989] [] ? do_journal_begin_r+0x9f/0x308 [ 278.278800] [] mutex_lock_nested+0x68/0x2d2 [ 278.284152] [] ? do_journal_begin_r+0x9f/0x308 [ 278.299640] [] ? do_journal_begin_r+0x9f/0x308 [ 278.305289] [] ? reiserfs_for_each_xattr+0x72/0x2ad [ 278.322801] [] ? cpu_clock+0x2d/0x3f [ 278.336165] [] do_journal_begin_r+0x9f/0x308 [ 278.341890] [] ? trace_hardirqs_off_caller+0x1f/0xa9 [ 278.357094] [] journal_begin+0xcb/0x10f [ 278.362825] [] reiserfs_delete_inode+0x96/0x141 [ 278.377094] [] ? reiserfs_delete_inode+0x0/0x141 [ 278.383601] [] generic_delete_inode+0xe1/0x174 [ 278.398309] [] generic_drop_inode+0x1c/0x67 [ 278.403863] [] iput+0x66/0x6a [ 278.418387] [] finish_unfinished+0x47a/0x529 [ 278.422333] [] ? reiserfs_write_lock+0x30/0x42 [ 278.438673] [] ? trace_hardirqs_on+0xd/0xf [ 278.444584] [] reiserfs_fill_super+0x896/0xa04 [ 278.459330] [] get_sb_bdev+0x134/0x17f [ 278.464098] [] ? reiserfs_fill_super+0x0/0xa04 [ 278.479768] [] get_super_block+0x18/0x1a [ 278.484545] [] vfs_kern_mount+0x5b/0xce [ 278.500296] [] do_kern_mount+0x4c/0xec [ 278.506534] [] do_mount+0x1c7/0x228 [ 278.518910] [] sys_mount+0x84/0xc4 [ 278.522530] [] ? trace_hardirqs_on_thunk+0x3a/0x3f [ 278.541059] [] system_call_fastpath+0x16/0x1b [ 278.555566] done [ 278.557459] REISERFS (device sda2): There were 1 uncompleted unlinks/truncates. Completed