possible circular locking dependency detected [4.5.5-300.fc24.x86_64]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi guys
Nothing terrible happens just like a message in the dmesg log.
This is false triggering, or have to worry about it?
If you need more additional information, please ask.

[17418.829549] ======================================================
[17418.829551] [ INFO: possible circular locking dependency detected ]
[17418.829553] 4.5.5-300.fc24.x86_64+debug #1 Not tainted
[17418.829554] -------------------------------------------------------
[17418.829556] DOM Worker/22151 is trying to acquire lock:
[17418.829557]  (&sb->s_type->i_mutex_key#20){+.+.+.}, at:
[<ffffffffa09826fd>] xfs_file_buffered_aio_write+0x6d/0x350 [xfs]
[17418.829643]
               but task is already holding lock:
[17418.829645]  (&pipe->mutex/1){+.+.+.}, at: [<ffffffff812992ae>]
pipe_lock+0x1e/0x20
[17418.829653]
               which lock already depends on the new lock.

[17418.829655]
               the existing dependency chain (in reverse order) is:
[17418.829656]
               -> #2 (&pipe->mutex/1){+.+.+.}:
[17418.829660]        [<ffffffff81110e9e>] lock_acquire+0xfe/0x1f0
[17418.829666]        [<ffffffff818b96a6>] mutex_lock_nested+0x86/0x400
[17418.829670]        [<ffffffff812992ae>] pipe_lock+0x1e/0x20
[17418.829673]        [<ffffffff812c9b00>] splice_to_pipe+0x40/0x260
[17418.829678]        [<ffffffff812cb4c3>]
__generic_file_splice_read+0x633/0x710
[17418.829681]        [<ffffffff812cb975>] generic_file_splice_read+0x45/0x90
[17418.829683]        [<ffffffffa097fadc>]
xfs_file_splice_read+0x11c/0x2a0 [xfs]
[17418.829726]        [<ffffffff812c9e6c>] do_splice_to+0x6c/0x80
[17418.829731]        [<ffffffff812cc804>] SyS_splice+0x7f4/0x830
[17418.829733]        [<ffffffff818bd032>] entry_SYSCALL_64_fastpath+0x12/0x72
[17418.829737]
               -> #1 (&(&ip->i_iolock)->mr_lock#2){++++++}:
[17418.829741]        [<ffffffff81110e9e>] lock_acquire+0xfe/0x1f0
[17418.829745]        [<ffffffff811095fe>] down_write_nested+0x5e/0xc0
[17418.829747]        [<ffffffffa0990805>] xfs_ilock+0x215/0x2c0 [xfs]
[17418.829782]        [<ffffffffa098270a>]
xfs_file_buffered_aio_write+0x7a/0x350 [xfs]
[17418.829807]        [<ffffffffa0982b21>] xfs_file_write_iter+0x141/0x160 [xfs]
[17418.829832]        [<ffffffff8128fbce>] __vfs_write+0xce/0x120
[17418.829835]        [<ffffffff81290485>] vfs_write+0xa5/0x190
[17418.829837]        [<ffffffff812913f8>] SyS_write+0x58/0xd0
[17418.829839]        [<ffffffff818bd032>] entry_SYSCALL_64_fastpath+0x12/0x72
[17418.829842]
               -> #0 (&sb->s_type->i_mutex_key#20){+.+.+.}:
[17418.829846]        [<ffffffff81110308>] __lock_acquire+0x1628/0x17c0
[17418.829850]        [<ffffffff81110e9e>] lock_acquire+0xfe/0x1f0
[17418.829853]        [<ffffffff818b96a6>] mutex_lock_nested+0x86/0x400
[17418.829855]        [<ffffffffa09826fd>]
xfs_file_buffered_aio_write+0x6d/0x350 [xfs]
[17418.829883]        [<ffffffffa0982b21>] xfs_file_write_iter+0x141/0x160 [xfs]
[17418.829903]        [<ffffffff8128faab>] vfs_iter_write+0x7b/0xd0
[17418.829906]        [<ffffffff812ca9f0>] iter_file_splice_write+0x270/0x3c0
[17418.829908]        [<ffffffff812cc379>] SyS_splice+0x369/0x830
[17418.829910]        [<ffffffff818bd032>] entry_SYSCALL_64_fastpath+0x12/0x72
[17418.829913]
               other info that might help us debug this:

[17418.829916] Chain exists of:
                 &sb->s_type->i_mutex_key#20 -->
&(&ip->i_iolock)->mr_lock#2 --> &pipe->mutex/1

[17418.829921]  Possible unsafe locking scenario:

[17418.829923]        CPU0                    CPU1
[17418.829924]        ----                    ----
[17418.829925]   lock(&pipe->mutex/1);
[17418.829927]                                lock(&(&ip->i_iolock)->mr_lock#2);
[17418.829930]                                lock(&pipe->mutex/1);
[17418.829932]   lock(&sb->s_type->i_mutex_key#20);
[17418.829934]
                *** DEADLOCK ***

[17418.829937] 2 locks held by DOM Worker/22151:
[17418.829938]  #0:  (sb_writers#17){.+.+.+}, at: [<ffffffff81293844>]
__sb_start_write+0xb4/0xf0
[17418.829943]  #1:  (&pipe->mutex/1){+.+.+.}, at:
[<ffffffff812992ae>] pipe_lock+0x1e/0x20
[17418.829948]
               stack backtrace:
[17418.829951] CPU: 7 PID: 22151 Comm: DOM Worker Not tainted
4.5.5-300.fc24.x86_64+debug #1
[17418.829953] Hardware name: Gigabyte Technology Co., Ltd.
Z87M-D3H/Z87M-D3H, BIOS F11 08/12/2014
[17418.829955]  0000000000000086 000000005a8c8b9d ffff8803cea4ba90
ffffffff8144f7e5
[17418.829958]  ffffffff82b23390 ffffffff82b1ff40 ffff8803cea4bad0
ffffffff8110d44e
[17418.829961]  00000000a9948998 0000000000000002 ffff8807a9948998
ffff8807a9948960
[17418.829965] Call Trace:
[17418.829970]  [<ffffffff8144f7e5>] dump_stack+0x86/0xc1
[17418.829974]  [<ffffffff8110d44e>] print_circular_bug+0x1be/0x210
[17418.829976]  [<ffffffff81110308>] __lock_acquire+0x1628/0x17c0
[17418.829979]  [<ffffffff81110e9e>] lock_acquire+0xfe/0x1f0
[17418.830002]  [<ffffffffa09826fd>] ?
xfs_file_buffered_aio_write+0x6d/0x350 [xfs]
[17418.830005]  [<ffffffff818b96a6>] mutex_lock_nested+0x86/0x400
[17418.830027]  [<ffffffffa09826fd>] ?
xfs_file_buffered_aio_write+0x6d/0x350 [xfs]
[17418.830049]  [<ffffffffa09826fd>] ?
xfs_file_buffered_aio_write+0x6d/0x350 [xfs]
[17418.830070]  [<ffffffffa09826fd>]
xfs_file_buffered_aio_write+0x6d/0x350 [xfs]
[17418.830074]  [<ffffffff8110e7a6>] ? mark_held_locks+0x76/0xa0
[17418.830076]  [<ffffffff818b98a8>] ? mutex_lock_nested+0x288/0x400
[17418.830079]  [<ffffffff8110e8c5>] ? trace_hardirqs_on_caller+0xf5/0x1b0
[17418.830099]  [<ffffffffa0982b21>] xfs_file_write_iter+0x141/0x160 [xfs]
[17418.830102]  [<ffffffff8128faab>] vfs_iter_write+0x7b/0xd0
[17418.830104]  [<ffffffff812ca9f0>] iter_file_splice_write+0x270/0x3c0
[17418.830106]  [<ffffffff812cc379>] SyS_splice+0x369/0x830
[17418.830109]  [<ffffffff811096bf>] ? up_write+0x1f/0x40
[17418.830112]  [<ffffffff818bd032>] entry_SYSCALL_64_fastpath+0x12/0x72




--
Best Regards,
Mike Gavrilov.

Attachment: dmesg.txt.tar.gz
Description: GNU Zip compressed data


[Index of Archives]     [XFS Filesystem Development (older mail)]     [Linux Filesystem Development]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux RAID]     [Linux SCSI]


  Powered by Linux