public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Vladislav Bolkhovitin <vst@vlnb.net>
To: linux-kernel <linux-kernel@vger.kernel.org>
Subject: lockdep: possible circular locking dependency detected on umount ext3 mount point
Date: Mon, 29 Oct 2007 15:44:54 +0300	[thread overview]
Message-ID: <4725D5C6.3000408@vlnb.net> (raw)

[-- Attachment #1: Type: text/plain, Size: 372 bytes --]

Hello,

I apologize if it's already reported, but quick search in LKML archive 
didn't find anything like that.

After some dbench runs on ext3 partition, mounted on /mnt, then quickly 
umount /mnt, lockdep reported possible circular locking dependency 
detected. See attach for the complete message. Kernel is 2.6.23. I can 
provide more info, if needed.

Regards,
Vlad


[-- Attachment #2: kernel --]
[-- Type: text/plain, Size: 6819 bytes --]

Oct 29 15:32:30 tgt kernel: [ 2757.342000] =======================================================
Oct 29 15:32:30 tgt kernel: [ 2757.342008] [ INFO: possible circular locking dependency detected ]
Oct 29 15:32:30 tgt kernel: [ 2757.342016] 2.6.23-scst-dbg #17
Oct 29 15:32:30 tgt kernel: [ 2757.342022] -------------------------------------------------------
Oct 29 15:32:30 tgt kernel: [ 2757.342028] umount/4185 is trying to acquire lock:
Oct 29 15:32:30 tgt kernel: [ 2757.342034]  (iprune_mutex){--..}, at: [<783626a6>] mutex_lock+0x1c/0x1f
Oct 29 15:32:30 tgt kernel: [ 2757.342060] 
Oct 29 15:32:30 tgt kernel: [ 2757.342062] but task is already holding lock:
Oct 29 15:32:30 tgt kernel: [ 2757.342067]  (&type->s_lock_key#7){--..}, at: [<783626a6>] mutex_lock+0x1c/0x1f
Oct 29 15:32:30 tgt kernel: [ 2757.342087] 
Oct 29 15:32:30 tgt kernel: [ 2757.342088] which lock already depends on the new lock.
Oct 29 15:32:30 tgt kernel: [ 2757.342091] 
Oct 29 15:32:30 tgt kernel: [ 2757.342095] 
Oct 29 15:32:30 tgt kernel: [ 2757.342096] the existing dependency chain (in reverse order) is:
Oct 29 15:32:30 tgt kernel: [ 2757.342101] 
Oct 29 15:32:30 tgt kernel: [ 2757.342103] -> #1 (&type->s_lock_key#7){--..}:
Oct 29 15:32:30 tgt kernel: [ 2757.342119]        [<7813fa23>] __lock_acquire+0xf71/0x106e
Oct 29 15:32:30 tgt kernel: [ 2757.342151]        [<7813fb89>] lock_acquire+0x69/0x82
Oct 29 15:32:30 tgt kernel: [ 2757.342179]        [<7836240d>] __mutex_lock_slowpath+0x79/0x2f6
Oct 29 15:32:30 tgt kernel: [ 2757.342207]        [<783626a6>] mutex_lock+0x1c/0x1f
Oct 29 15:32:30 tgt kernel: [ 2757.342233]        [<781773be>] lock_super+0x19/0x1b
Oct 29 15:32:30 tgt kernel: [ 2757.342263]        [<781bf799>] ext3_orphan_add+0x1b/0x163
Oct 29 15:32:30 tgt kernel: [ 2757.342309]        [<781bb9e5>] ext3_truncate+0x391/0x935
Oct 29 15:32:30 tgt kernel: [ 2757.342335]        [<781bc63b>] ext3_delete_inode+0xbf/0xc6
Oct 29 15:32:30 tgt kernel: [ 2757.342363]        [<78188b7d>] generic_delete_inode+0x6a/0x105
Oct 29 15:32:30 tgt kernel: [ 2757.342392]        [<78188d27>] generic_drop_inode+0x10f/0x141
Oct 29 15:32:30 tgt kernel: [ 2757.342420]        [<78188226>] iput+0x5f/0x66
Oct 29 15:32:30 tgt kernel: [ 2757.342447]        [<78188f63>] shrink_icache_memory+0x138/0x20d
Oct 29 15:32:30 tgt kernel: [ 2757.342473]        [<7815fd53>] shrink_slab+0x130/0x198
Oct 29 15:32:30 tgt kernel: [ 2757.342500]        [<78160698>] try_to_free_pages+0x1bd/0x2b5
Oct 29 15:32:30 tgt kernel: [ 2757.342528]        [<7815b9de>] __alloc_pages+0x14c/0x364
Oct 29 15:32:30 tgt kernel: [ 2757.342557]        [<78157f5b>] generic_file_buffered_write+0x159/0x69c
Oct 29 15:32:30 tgt kernel: [ 2757.342584]        [<78158719>] __generic_file_aio_write_nolock+0x27b/0x536
Oct 29 15:32:30 tgt kernel: [ 2757.342612]        [<78158a2a>] generic_file_aio_write+0x56/0xc2
Oct 29 15:32:30 tgt kernel: [ 2757.342640]        [<781b8667>] ext3_file_write+0x27/0xa8
Oct 29 15:32:30 tgt kernel: [ 2757.342665]        [<78175d65>] do_sync_write+0xd0/0x106
Oct 29 15:32:30 tgt kernel: [ 2757.342693]        [<78176552>] vfs_write+0x8b/0x149
Oct 29 15:32:30 tgt kernel: [ 2757.342721]        [<78176bc4>] sys_write+0x3d/0x64
Oct 29 15:32:30 tgt kernel: [ 2757.342746]        [<78102ca2>] sysenter_past_esp+0x5f/0x99
Oct 29 15:32:30 tgt kernel: [ 2757.342775]        [<ffffffff>] 0xffffffff
Oct 29 15:32:30 tgt kernel: [ 2757.342814] 
Oct 29 15:32:30 tgt kernel: [ 2757.342815] -> #0 (iprune_mutex){--..}:
Oct 29 15:32:30 tgt kernel: [ 2757.342827]        [<7813f50f>] __lock_acquire+0xa5d/0x106e
Oct 29 15:32:30 tgt kernel: [ 2757.342855]        [<7813fb89>] lock_acquire+0x69/0x82
Oct 29 15:32:30 tgt kernel: [ 2757.342884]        [<7836240d>] __mutex_lock_slowpath+0x79/0x2f6
Oct 29 15:32:30 tgt kernel: [ 2757.342913]        [<783626a6>] mutex_lock+0x1c/0x1f
Oct 29 15:32:30 tgt kernel: [ 2757.342941]        [<78189056>] invalidate_inodes+0x1e/0xcc
Oct 29 15:32:30 tgt kernel: [ 2757.342969]        [<78177b3e>] generic_shutdown_super+0x37/0xcb
Oct 29 15:32:30 tgt kernel: [ 2757.342999]        [<78177be1>] kill_block_super+0xf/0x20
Oct 29 15:32:30 tgt kernel: [ 2757.343027]        [<78177ca6>] deactivate_super+0x63/0x75
Oct 29 15:32:30 tgt kernel: [ 2757.343054]        [<7818accc>] mntput_no_expire+0x44/0x62
Oct 29 15:32:30 tgt kernel: [ 2757.343084]        [<7817ca9e>] path_release_on_umount+0x15/0x18
Oct 29 15:32:30 tgt kernel: [ 2757.343113]        [<7818b21d>] sys_umount+0x3b/0x223
Oct 29 15:32:30 tgt kernel: [ 2757.343140]        [<7818b41e>] sys_oldumount+0x19/0x1b
Oct 29 15:32:30 tgt kernel: [ 2757.343168]        [<78102ca2>] sysenter_past_esp+0x5f/0x99
Oct 29 15:32:30 tgt kernel: [ 2757.343195]        [<ffffffff>] 0xffffffff
Oct 29 15:32:30 tgt kernel: [ 2757.343222] 
Oct 29 15:32:30 tgt kernel: [ 2757.343224] other info that might help us debug this:
Oct 29 15:32:30 tgt kernel: [ 2757.343226] 
Oct 29 15:32:30 tgt kernel: [ 2757.343231] 2 locks held by umount/4185:
Oct 29 15:32:30 tgt kernel: [ 2757.343237]  #0:  (&type->s_umount_key#15){----}, at: [<78177ca1>] deactivate_super+0x5e/0x75
Oct 29 15:32:30 tgt kernel: [ 2757.343263]  #1:  (&type->s_lock_key#7){--..}, at: [<783626a6>] mutex_lock+0x1c/0x1f
Oct 29 15:32:30 tgt kernel: [ 2757.343290] 
Oct 29 15:32:30 tgt kernel: [ 2757.343292] stack backtrace:
Oct 29 15:32:30 tgt kernel: [ 2757.343297]  [<78103d59>] show_trace_log_lvl+0x1a/0x30
Oct 29 15:32:30 tgt kernel: [ 2757.343308]  [<7810488d>] show_trace+0x12/0x14
Oct 29 15:32:30 tgt kernel: [ 2757.343320]  [<781048a5>] dump_stack+0x16/0x18
Oct 29 15:32:30 tgt kernel: [ 2757.343329]  [<7813d426>] print_circular_bug_tail+0x68/0x71
Oct 29 15:32:30 tgt kernel: [ 2757.343339]  [<7813f50f>] __lock_acquire+0xa5d/0x106e
Oct 29 15:32:30 tgt kernel: [ 2757.343349]  [<7813fb89>] lock_acquire+0x69/0x82
Oct 29 15:32:30 tgt kernel: [ 2757.343357]  [<7836240d>] __mutex_lock_slowpath+0x79/0x2f6
Oct 29 15:32:30 tgt kernel: [ 2757.343368]  [<783626a6>] mutex_lock+0x1c/0x1f
Oct 29 15:32:30 tgt kernel: [ 2757.343377]  [<78189056>] invalidate_inodes+0x1e/0xcc
Oct 29 15:32:30 tgt kernel: [ 2757.343388]  [<78177b3e>] generic_shutdown_super+0x37/0xcb
Oct 29 15:32:30 tgt kernel: [ 2757.343399]  [<78177be1>] kill_block_super+0xf/0x20
Oct 29 15:32:30 tgt kernel: [ 2757.343409]  [<78177ca6>] deactivate_super+0x63/0x75
Oct 29 15:32:30 tgt kernel: [ 2757.343419]  [<7818accc>] mntput_no_expire+0x44/0x62
Oct 29 15:32:30 tgt kernel: [ 2757.343429]  [<7817ca9e>] path_release_on_umount+0x15/0x18
Oct 29 15:32:30 tgt kernel: [ 2757.343440]  [<7818b21d>] sys_umount+0x3b/0x223
Oct 29 15:32:30 tgt kernel: [ 2757.343449]  [<7818b41e>] sys_oldumount+0x19/0x1b
Oct 29 15:32:30 tgt kernel: [ 2757.343458]  [<78102ca2>] sysenter_past_esp+0x5f/0x99
Oct 29 15:32:30 tgt kernel: [ 2757.343467]  =======================

                 reply	other threads:[~2007-10-29 13:14 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4725D5C6.3000408@vlnb.net \
    --to=vst@vlnb.net \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox