From: Pavel Machek <pavel@ucw.cz>
To: Miklos Szeredi <miklos@szeredi.hu>
Cc: akpm@linux-foundation.org, niel.lambrechts@gmail.com,
linux-kernel@vger.kernel.org, gregkh@suse.de, rjw@sisk.pl
Subject: Re: 2.6.29.4: hibernation fails with large kernel trace
Date: Thu, 28 May 2009 13:45:27 +0200 [thread overview]
Message-ID: <20090528114527.GA2140@elf.ucw.cz> (raw)
In-Reply-To: <E1M9ZJI-0003bh-HD@pomaz-ex.szeredi.hu>
Hi!
> > The process "fuser" is stuck down in the fuse code awaiting a response
> > or something. I'd suspect that this is the cause of the freezing
> > failure:
>
> Yup, the 'gvfs-fuse-daemon' process is already in the refrigerator, so
> it cannot complete the request from the 'fuser' process.
>
> The solution is simple, really: just allow the 'fuser' task to freeze
> despite the fact that it's inside a syscall. There's the small detail
> of actually implementing this, without breaking everything else...
>
> What complicates the above is that we need to enable freezing not just
> inside fuse callbacks, but in the VFS as well. E.g. sys_rename()
> sleeping on i_mutex needs to be freezable as well, otherwise another
> thread that is already frozen and holding that i_mutex will block that
> rename.
>
> So,
>
> a) we need some sort of mechanism to selectively disable freezing only
> for those syscalls which might (directly) touch hardware state. It
> _hopefully_ should be enough to do so with read, write and ioctl,
>
> b) we need to re-enable freezing for these in fuse.
>
> That's the theory. I promised a prototype some time ago but haven't
> yet got around to doing it.
In the meantime, people should stop/restart fuse around
suspend/hibernation, I guess...
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:[~2009-05-28 11:45 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-26 18:37 2.6.29.4: hibernation fails with large kernel trace Niel Lambrechts
2009-05-28 5:32 ` Andrew Morton
2009-05-28 6:41 ` Miklos Szeredi
2009-05-28 11:45 ` Pavel Machek [this message]
2009-05-28 15:06 ` Miklos Szeredi
2009-05-28 20:48 ` Pavel Machek
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=20090528114527.GA2140@elf.ucw.cz \
--to=pavel@ucw.cz \
--cc=akpm@linux-foundation.org \
--cc=gregkh@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=miklos@szeredi.hu \
--cc=niel.lambrechts@gmail.com \
--cc=rjw@sisk.pl \
/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