From: Joakim Tjernlund <Joakim.Tjernlund@infinera.com>
To: "dwmw2@infradead.org" <dwmw2@infradead.org>,
"Thomas.Betker@rohde-schwarz.com"
<Thomas.Betker@rohde-schwarz.com>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"linux-mtd@lists.infradead.org" <linux-mtd@lists.infradead.org>,
"sztomi89@gmail.com" <sztomi89@gmail.com>,
"wangzaiwei@top-vision.cn" <wangzaiwei@top-vision.cn>,
"deng.chao1@zte.com.cn" <deng.chao1@zte.com.cn>,
"liu.ming50@gmail.com" <liu.ming50@gmail.com>,
"dedekind1@gmail.com" <dedekind1@gmail.com>,
"viro@zeniv.linux.org.uk" <viro@zeniv.linux.org.uk>,
"linux-mtd-bounces@lists.infradead.org"
<linux-mtd-bounces@lists.infradead.org>,
"linux-fsdevel@vger.kernel.org" <linux-fsdevel@vger.kernel.org>,
"computersforpeace@gmail.com" <computersforpeace@gmail.com>
Subject: Re: JFFS2 deadlock
Date: Thu, 25 Feb 2016 07:46:20 +0000 [thread overview]
Message-ID: <1456386428.3632.2.camel@infinera.com> (raw)
In-Reply-To: <OF19585295.84AA7860-ONC1257F5D.0031E02A-C1257F5D.0036B10E@rohde-schwarz.com>
On Thu, 2016-02-18 at 10:57 +0100, Thomas.Betker@rohde-schwarz.com wrote:
> Hello David:
>
> >
> > >
> > > Please could you try what's in the tree at
> > > http://git.infradead.org/users/dwmw2/jffs2-fixes.git
> >
> > Your patch looks much simpler, and I will definitely test it. It may
> > take a few days, though, as I have to unearth the test scripts, and
> > find a time slot for testing.
> Here is what I did (sorry for the wait, things were piling up):
>
> 1) Removed Deng Chao's patch from my kernel, added your patch "jffs2: Fix
> page lock / f->sem deadlock". I am still on linux-3.14, but jffs2 hasn't
> changed much since then, so this shouldn't make a difference. Added a
> printk() before mutex_unlock(&f->sem) to check if the prospective page was
> locked, i.e. if the deadlock situation actually occurs.
>
> 2) On my target system, started wangzaiwei's test (with some fixes), plus
> a loop copying a large file over and over (to get GC rolling, which
> increases the chance of a deadlock).
>
> 3) After 24 hours, the system was still alive, and the printk() had been
> hit 32 times.
>
> So yes, I am confident that your patch avoids the deadlock, and if that's
> good enough for you, please add my Tested-by:. However, I am going to run
> some more stress tests here just to check that there weren't any
> unexpected side effects. (Don't get me wrong -- I am sure the patch is
> fine, but for me it's a case of "once bitten, twice shy" ...)
Can we get this upstream before next release? I don't think there will much more
testing at this point.
Jocke
next prev parent reply other threads:[~2016-02-25 7:47 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CAKatumo13ZM2o3dK9_ouxzta-sxeiB5E236Qh5dfbnEBc9CuMw@mail.gmail.com>
[not found] ` <1453910781.20662.35.camel@infinera.com>
2016-01-28 0:05 ` Brian Norris
2016-01-28 8:16 ` Thomas.Betker
2016-02-01 14:28 ` David Woodhouse
2016-02-01 18:54 ` Thomas.Betker
[not found] ` <OF2969B332.8B296F0B-ONC1257F4C.006307EB-C1257F4C.0067DE44@LocalDomain>
2016-02-18 9:57 ` Thomas.Betker
2016-02-25 7:46 ` Joakim Tjernlund [this message]
2016-02-25 9:57 ` Thomas.Betker
2016-02-25 11:22 ` David Woodhouse
2016-02-25 17:57 ` Brian Norris
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=1456386428.3632.2.camel@infinera.com \
--to=joakim.tjernlund@infinera.com \
--cc=Thomas.Betker@rohde-schwarz.com \
--cc=computersforpeace@gmail.com \
--cc=dedekind1@gmail.com \
--cc=deng.chao1@zte.com.cn \
--cc=dwmw2@infradead.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mtd-bounces@lists.infradead.org \
--cc=linux-mtd@lists.infradead.org \
--cc=liu.ming50@gmail.com \
--cc=sztomi89@gmail.com \
--cc=viro@zeniv.linux.org.uk \
--cc=wangzaiwei@top-vision.cn \
/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
Powered by JetHome