linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Luis R. Rodriguez" <mcgrof@kernel.org>
To: "Rafael J. Wysocki" <rafael@kernel.org>
Cc: "Luis R. Rodriguez" <mcgrof@kernel.org>,
	Bart Van Assche <Bart.VanAssche@wdc.com>,
	"darrick.wong@oracle.com" <darrick.wong@oracle.com>,
	"jlayton@redhat.com" <jlayton@redhat.com>,
	"jikos@kernel.org" <jikos@kernel.org>,
	"jack@suse.cz" <jack@suse.cz>,
	"david@fromorbit.com" <david@fromorbit.com>,
	"lsf-pc@lists.linux-foundation.org"
	<lsf-pc@lists.linux-foundation.org>,
	"linux-fsdevel@vger.kernel.org" <linux-fsdevel@vger.kernel.org>
Subject: Re: [LSF/MM TOPIC] Phasing out kernel thread freezing
Date: Sun, 25 Feb 2018 17:22:34 +0000	[thread overview]
Message-ID: <20180225172234.GK14069@wotan.suse.de> (raw)
In-Reply-To: <CAJZ5v0hJZdcBbruvKrprY-1dC7M3aWoHtaKZiZDGVZXAtVEWrg@mail.gmail.com>

On Sun, Feb 25, 2018 at 10:45:26AM +0100, Rafael J. Wysocki wrote:
> On Sat, Feb 24, 2018 at 4:27 AM, Luis R. Rodriguez <mcgrof@kernel.org> wrote:
> > On Mon, Feb 05, 2018 at 09:28:37AM +0100, Rafael J. Wysocki wrote:
> >> Moreover, during hibernation devices are suspended for two times (and
> >> resumed in between, of course) whereas filesystems only need to be
> >> "suspended" once.
> >
> > From your point of view yes, but actually internally the VFS layer or
> > filesystems themselves may end up re-using this mechanism later for
> > other things like -- snapshotting. And if some folks have it the way
> > they want it, we may need a dependency map between filesystems anyway
> > for filesystem specific reasons.
> 
> That's orthogonal to what I said.

<-- snip -->

> However, *devices* are resumed after creating the image so that the
> image itself can be written to persistent storage and are suspended
> after that again before putting the system to sleep (for wakeup to
> work, among other things).
> 
> That's why suspend/resume of filesystems cannot be tied to
> suspend/resume of devices.

Ah, yes, I see your point now. So for filesystems we really don't
care if its suspend or hibernation, we just need to freeze in the right
order. So long as we get that order right we should be OK.

Curious --  do we resume *all* devices after creating the image for hibernation
today?  Not that I am advocating using devices for this mechanism or resolution
for filesystems, I'm just curious as we're on the topic.

  Luis

  reply	other threads:[~2018-02-25 17:22 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-26  9:09 [LSF/MM TOPIC] Phasing out kernel thread freezing Luis R. Rodriguez
2018-01-31 19:10 ` Darrick J. Wong
2018-02-04 22:41   ` Bart Van Assche
2018-02-05  8:28     ` Rafael J. Wysocki
2018-02-24  3:27       ` Luis R. Rodriguez
2018-02-25  9:45         ` Rafael J. Wysocki
2018-02-25 17:22           ` Luis R. Rodriguez [this message]
2018-02-26  9:25             ` Rafael J. Wysocki
2018-02-26 12:44               ` Jan Kara
2018-02-26 13:27                 ` 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=20180225172234.GK14069@wotan.suse.de \
    --to=mcgrof@kernel.org \
    --cc=Bart.VanAssche@wdc.com \
    --cc=darrick.wong@oracle.com \
    --cc=david@fromorbit.com \
    --cc=jack@suse.cz \
    --cc=jikos@kernel.org \
    --cc=jlayton@redhat.com \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=lsf-pc@lists.linux-foundation.org \
    --cc=rafael@kernel.org \
    /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).