All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dave Chinner <david@fromorbit.com>
To: Tetsuo Handa <penguin-kernel@i-love.sakura.ne.jp>
Cc: Dave Chinner <dchinner@redhat.com>,
	linux-xfs@vger.kernel.org, linux-mm@kvack.org,
	Omar Sandoval <osandov@fb.com>
Subject: Re: xfs: circular locking dependency between fs_reclaim and sb_internal [kernel 4.18]
Date: Thu, 21 Jun 2018 10:15:09 +1000	[thread overview]
Message-ID: <20180621001509.GQ19934@dastard> (raw)
In-Reply-To: <8fda53b0-9d86-943b-e8b4-fd9d6553f010@i-love.sakura.ne.jp>

On Wed, Jun 20, 2018 at 08:25:51PM +0900, Tetsuo Handa wrote:
> I'm hitting below lockdep warning (essentially same with
> http://lkml.kernel.org/r/1518666178.6070.25.camel@gmail.com ) as of commit
> ba4dbdedd3edc279 ("Merge tag 'jfs-4.18' of git://github.com/kleikamp/linux-shaggy")
> on linux.git . I think that this became visible by commit 93781325da6e07af
> ("lockdep: fix fs_reclaim annotation") which went to 4.18-rc1. What should we do?
> 
> [   63.207781] 
> [   63.471926] ======================================================
> [   64.432812] WARNING: possible circular locking dependency detected
> [   64.948272] 4.18.0-rc1+ #594 Tainted: G                T
> [   65.512546] ------------------------------------------------------
> [   65.519722] kswapd0/79 is trying to acquire lock:
> [   65.525792] 00000000f3581fab (sb_internal){.+.+}, at: xfs_trans_alloc+0xe0/0x120 [xfs]
> [   66.034497] 
> [   66.034497] but task is already holding lock:
> [   66.661024] 00000000c7665973 (fs_reclaim){+.+.}, at: __fs_reclaim_acquire+0x0/0x30
> [   67.554480] 
> [   67.554480] which lock already depends on the new lock.
> [   67.554480] 
> [   68.760085] 
> [   68.760085] the existing dependency chain (in reverse order) is:
> [   69.258520] 
> [   69.258520] -> #1 (fs_reclaim){+.+.}:
> [   69.623516] 
> [   69.623516] -> #0 (sb_internal){.+.+}:

BTW, where's the stack trace that was recorded when this ordering
was seen? Normally lockdep gives us all the relevant stack traces in
a report, and without this trace to tell us where it saw this order,
this bug report is mostly useless because we don't know what
inversion it has recorded and is complaining about.

Cheers,

Dave.
-- 
Dave Chinner
david@fromorbit.com

  parent reply	other threads:[~2018-06-21  0:15 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-20 11:25 xfs: circular locking dependency between fs_reclaim and sb_internal [kernel 4.18] Tetsuo Handa
2018-06-20 23:35 ` Dave Chinner
2018-06-21  0:15 ` Dave Chinner [this message]
2018-06-21  5:47   ` [PATCH] Makefile: Fix backtrace breakage Tetsuo Handa
2018-06-21  5:47     ` Tetsuo Handa
2018-06-21  5:56     ` Greg Thelen
2018-06-21 20:48     ` Andi Kleen
2018-06-21 21:30       ` Steven Rostedt
2018-06-21 21:31         ` Steven Rostedt

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=20180621001509.GQ19934@dastard \
    --to=david@fromorbit.com \
    --cc=dchinner@redhat.com \
    --cc=linux-mm@kvack.org \
    --cc=linux-xfs@vger.kernel.org \
    --cc=osandov@fb.com \
    --cc=penguin-kernel@i-love.sakura.ne.jp \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.