From: "Luis R. Rodriguez" <mcgrof@kernel.org>
To: "Darrick J. Wong" <darrick.wong@oracle.com>
Cc: Brian Foster <bfoster@redhat.com>,
linux-xfs@vger.kernel.org, David Jeffery <djeffery@redhat.com>,
sebastian.parschauer@suse.com, AlNovak@suse.com
Subject: Re: [PATCH] xfs: use dedicated log worker wq to avoid deadlock with cil wq
Date: Thu, 16 Mar 2017 20:50:56 +0100 [thread overview]
Message-ID: <20170316195056.GN28800@wotan.suse.de> (raw)
In-Reply-To: <20170316191734.GM5280@birch.djwong.org>
On Thu, Mar 16, 2017 at 12:17:34PM -0700, Darrick J. Wong wrote:
> On Thu, Mar 09, 2017 at 01:18:17PM -0500, Brian Foster wrote:
> > The log covering background task used to be part of the xfssyncd
> > workqueue. That workqueue was removed as of commit 5889608df ("xfs:
> > syncd workqueue is no more") and the associated work item scheduled
> > to the xfs-log wq. The latter is used for log buffer I/O completion.
That went in on v3.8.
<-- snip -->
> > In this scenario
> > both workqueues are deadlocked waiting on eachother.
> >
> > Add a new workqueue specifically for the high level log covering and
> > ail pushing worker, as was the case prior to commit 5889608df.
> >
> > Diagnosed-by: David Jeffery <djeffery@redhat.com>
> > Signed-off-by: Brian Foster <bfoster@redhat.com>
> > ---
> >
> > Note that this seems difficult to reproduce in practice because I
> > believe it also relies on memory pressure. Otherwise, the xfs-log wq
> > rescuer thread may be available to unwind the deadlock.
Still, a dead lock is no bueno. No happy user can exist with a deadlock.
> I /think/ this looks ok? But let me run it through xfstests before I
> commit to anything. :)
Provided that goes smooth -- this seems like a stable candidate to me.
Otherwise we're going to have to carry it anyway on distributions.
Luis
next prev parent reply other threads:[~2017-03-16 19:51 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-09 18:18 [PATCH] xfs: use dedicated log worker wq to avoid deadlock with cil wq Brian Foster
2017-03-16 19:17 ` Darrick J. Wong
2017-03-16 19:50 ` Luis R. Rodriguez [this message]
2017-03-28 12:51 ` Brian Foster
2017-03-28 15:01 ` Darrick J. Wong
2017-03-28 15:15 ` Brian Foster
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=20170316195056.GN28800@wotan.suse.de \
--to=mcgrof@kernel.org \
--cc=AlNovak@suse.com \
--cc=bfoster@redhat.com \
--cc=darrick.wong@oracle.com \
--cc=djeffery@redhat.com \
--cc=linux-xfs@vger.kernel.org \
--cc=sebastian.parschauer@suse.com \
/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;
as well as URLs for NNTP newsgroup(s).