* jffs2 unmount with delayed work queued
@ 2012-08-02 1:47 Scott Wood
2012-08-24 8:10 ` Artem Bityutskiy
0 siblings, 1 reply; 2+ messages in thread
From: Scott Wood @ 2012-08-02 1:47 UTC (permalink / raw)
To: Artem Bityutskiy, David Woodhouse; +Cc: linux-mtd@lists.infradead.org
With slub debugging on, I was seeing a crash in timer code after
unmounting a jffs2 filesystem, with a reference to poisoned memory. I
traced this back to jffs2_kill_sb() freeing the superblock with
c->wbuf_dwork.timer still active, and c->wbuf_queued = 1. I've seen
this in Linus's current tree as well as 3.5.
I would have just sent a patch, but I wasn't sure exactly how to
gracefully shut things down -- cancel or flush, and at what point?
Don't want to do it too late for the work to happen safely, but don't
want to do it too early so that it could get queued again.
-Scott
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: jffs2 unmount with delayed work queued
2012-08-02 1:47 jffs2 unmount with delayed work queued Scott Wood
@ 2012-08-24 8:10 ` Artem Bityutskiy
0 siblings, 0 replies; 2+ messages in thread
From: Artem Bityutskiy @ 2012-08-24 8:10 UTC (permalink / raw)
To: Scott Wood; +Cc: linux-mtd@lists.infradead.org, David Woodhouse
[-- Attachment #1: Type: text/plain, Size: 939 bytes --]
On Wed, 2012-08-01 at 20:47 -0500, Scott Wood wrote:
> With slub debugging on, I was seeing a crash in timer code after
> unmounting a jffs2 filesystem, with a reference to poisoned memory. I
> traced this back to jffs2_kill_sb() freeing the superblock with
> c->wbuf_dwork.timer still active, and c->wbuf_queued = 1. I've seen
> this in Linus's current tree as well as 3.5.
>
> I would have just sent a patch, but I wasn't sure exactly how to
> gracefully shut things down -- cancel or flush, and at what point?
> Don't want to do it too late for the work to happen safely, but don't
> want to do it too early so that it could get queued again.
Hi Scott,
sorry for slow reply. I have a fix in the l2-mtd tree for this, I think
dwmw2 will merge it upstream at some point:
http://git.infradead.org/users/dedekind/l2-mtd-2.6.git/commit/28b65f8a2eece7e14bd4b9359509c667a5cb07d1
--
Best Regards,
Artem Bityutskiy
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-08-24 8:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-02 1:47 jffs2 unmount with delayed work queued Scott Wood
2012-08-24 8:10 ` Artem Bityutskiy
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).