All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Luis R. Rodriguez" <mcgrof@kernel.org>
To: Yu Chen <yu.c.chen@intel.com>
Cc: Michal Hocko <mhocko@suse.com>,
	Hendrik Woltersdorf <hendrikw@arcor.de>,
	Dave Chinner <dchinner@redhat.com>,
	"Rafael J. Wysocki" <rafael.j.wysocki@intel.com>,
	"Darrick J. Wong" <darrick.wong@oracle.com>,
	Jiri Kosina <jkosina@suse.cz>, Len Brown <len.brown@intel.com>,
	Rui Zhang <rui.zhang@intel.com>,
	Dan Williams <dan.j.williams@intel.com>,
	Yu Chen <yu.chen.surf@gmail.com>,
	linux-xfs@vger.kernel.org, linux-pm@vger.kernel.org,
	inux-kernel@vger.kernel.org
Subject: Re: [Regression/XFS/PM] Freeze tasks failed in xfsaild
Date: Mon, 13 Nov 2017 21:14:14 +0100	[thread overview]
Message-ID: <20171113201414.GD16026@wotan.suse.de> (raw)
In-Reply-To: <20171113103139.GA18936@yu-chen.sh.intel.com>

On Mon, Nov 13, 2017 at 06:31:39PM +0800, Yu Chen wrote:
> The xfs-buf/dm-1 should be freezed according to
> commit 8018ec083c72 ("xfs: mark all internal workqueues
> as freezable"), thus a easier way might be have to revert
> commit 18f1df4e00ce ("xfs: Make xfsaild freezeable
> again") for now, after this reverting the xfsaild/dm-1
> becomes non-freezable again, thus pm does not see this
> thread - unless we find a graceful way to treat xfsaild/dm-1
> as 'frozen' if it is waiting for an already 'frozen' task,
> or if the filesystem freeze is added in.
> 
> Any comments would be much appreciated.

Reverting 18f1df4e00ce ("xfs: Make xfsaild freezeable again")
would break the proper form of the kthread for it to be freezable.
This "form" is not defined formally, and sadly its just a form
learned throughout years over different kthreads in the kernel.

I'm also not convinced all our hibernation / suspend woes would be fixed by
reverting this commit, its why I worked instead on formalizing a proper freeze
/ thaw, which a lot of filesystems already implement prior to system
hibernation / suspend / resume [0].

I'll be respinning this series without the last patch, provided I'm able to
ensure I don't need the ext[234] hack I did in that thread. Can you test the
first 3 patches *only* on that series and seeing if that helps on your XFS
front as well?

[0] https://lkml.kernel.org/r/20171003185313.1017-1-mcgrof@kernel.org

  Luis

  reply	other threads:[~2017-11-13 20:14 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-13 10:31 [Regression/XFS/PM] Freeze tasks failed in xfsaild Yu Chen
2017-11-13 20:14 ` Luis R. Rodriguez [this message]
2017-11-13 20:37   ` Dan Williams
2017-11-14 20:19     ` Luis R. Rodriguez
2017-11-14 21:25       ` Dave Chinner
2017-11-14 22:01         ` Rafael J. Wysocki
2017-11-14 23:07           ` Dave Chinner
2017-11-14 23:40             ` Rafael J. Wysocki
2017-11-15 18:01               ` Luis R. Rodriguez
2017-11-15 18:05                 ` Rafael J. Wysocki
2017-11-14  3:31   ` Yu Chen
2017-11-13 22:52 ` Dave Chinner
2017-11-14  3:39   ` Yu Chen
2017-11-14  4:02     ` Dave Chinner
2017-11-14 16:39       ` Yu Chen
2017-11-14 16:39         ` Yu Chen
2017-11-14 16:39         ` Yu Chen
2017-11-15 10:14         ` Michal Hocko

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=20171113201414.GD16026@wotan.suse.de \
    --to=mcgrof@kernel.org \
    --cc=dan.j.williams@intel.com \
    --cc=darrick.wong@oracle.com \
    --cc=dchinner@redhat.com \
    --cc=hendrikw@arcor.de \
    --cc=inux-kernel@vger.kernel.org \
    --cc=jkosina@suse.cz \
    --cc=len.brown@intel.com \
    --cc=linux-pm@vger.kernel.org \
    --cc=linux-xfs@vger.kernel.org \
    --cc=mhocko@suse.com \
    --cc=rafael.j.wysocki@intel.com \
    --cc=rui.zhang@intel.com \
    --cc=yu.c.chen@intel.com \
    --cc=yu.chen.surf@gmail.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.