From: Pavel Machek <pavel@ucw.cz>
To: Miklos Szeredi <miklos@szeredi.hu>
Cc: mjg59@srcf.ucam.org, nigel@suspend2.net,
linux-kernel@vger.kernel.org,
linux-pm@lists.linux-foundation.org, mingo@elte.hu
Subject: possible solution for problem 2 (was Re: [RFC][PATCH -mm] PM: Do not sync filesystems from within the freezer)
Date: Sat, 7 Jul 2007 13:48:56 +0200 [thread overview]
Message-ID: <20070707114856.GB2789@elf.ucw.cz> (raw)
In-Reply-To: <E1I6iMD-0003Gl-00@dorka.pomaz.szeredi.hu>
Hi!
> > > > To get more serious and practical though, I think the solution is to
> > > > fuzz the userspace/kernelspace distinction. What we really want to
> > > > do is freeze things that submit I/O, then sync, then freeze anything
> > > > that processes I/O and needs to be frozen. In effect, redefine fuse
> > > > processes as freezeable kernel threads.
> > >
> > > Another myth, that has been debunked already. The problem is: how do
> > > you define fuse processes? There's no theoretical or even practial
> > > way to do that.
> >
> > No theoretical or practical way?! I'll freely admit to being quite ignorant
> > about fuse, but surely there's some way by which they can be distinguished.
>
> How? OK, there are some tasks, that read and/or write /dev/fuse. And
> there are some that just communicate in some way with the above.
(Not that I'm advocating this, but:)
You could ask fused to identify tasks involved in fuse handling. "Hey,
fused, please give me list of PIDs".
Yes, that would be beyond ugly.
(I guess I'm advocating this:)
We probably can do variation on this. Notify fuse early that suspend
is comming, so we can wait for all the fused requests to be flushed
(/fusectl/*/waiting going to 0), and then just trap tasks trying to
communicate with fuse in a sane place (i.e. not a place where VFS
locks are held).
...I'm not saying this is a nice solution, but it should
work... right...? And should work for hibernation, too...?
(at this point, we still have problem 1: something in s2ram path
causes fuse to communicate with its frozen fused. It is not sync, so
what is it?)
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
next prev parent reply other threads:[~2007-07-07 11:48 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200707041658.59588.rjw@sisk.pl>
2007-07-04 22:48 ` [RFC][PATCH -mm] PM: Do not sync from within the freezer during suspend to RAM Nigel Cunningham
[not found] ` <200707050848.16163.nigel@nigel.suspend2.net>
2007-07-04 22:49 ` Pavel Machek
[not found] ` <20070704224942.GD2491@elf.ucw.cz>
2007-07-04 22:52 ` Nigel Cunningham
[not found] ` <200707050852.15392.nigel@nigel.suspend2.net>
2007-07-05 11:28 ` Rafael J. Wysocki
2007-07-05 11:37 ` Nigel Cunningham
[not found] ` <200707052137.58164.nigel@nigel.suspend2.net>
[not found] ` <200707052231.27780.rjw@sisk.pl>
2007-07-05 22:00 ` [RFC][PATCH -mm] PM: Do not sync filesystems from within the freezer Pavel Machek
[not found] ` <20070705220046.GC3881@elf.ucw.cz>
2007-07-06 7:02 ` Rafael J. Wysocki
[not found] ` <200707060902.55090.rjw@sisk.pl>
2007-07-06 7:07 ` Nigel Cunningham
2007-07-06 7:13 ` Miklos Szeredi
2007-07-06 7:19 ` Nigel Cunningham
[not found] ` <200707061719.36054.nigel@nigel.suspend2.net>
2007-07-06 7:36 ` Miklos Szeredi
[not found] ` <E1I6iMD-0003Gl-00@dorka.pomaz.szeredi.hu>
2007-07-07 11:48 ` Pavel Machek [this message]
2007-07-06 8:59 ` Benjamin Herrenschmidt
2007-07-06 9:05 ` Miklos Szeredi
[not found] ` <E1I6jlB-0003TC-00@dorka.pomaz.szeredi.hu>
2007-07-06 9:13 ` Nigel Cunningham
2007-07-06 9:31 ` Miklos Szeredi
2007-07-06 10:00 ` Rafael J. Wysocki
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=20070707114856.GB2789@elf.ucw.cz \
--to=pavel@ucw.cz \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@lists.linux-foundation.org \
--cc=miklos@szeredi.hu \
--cc=mingo@elte.hu \
--cc=mjg59@srcf.ucam.org \
--cc=nigel@suspend2.net \
/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