From: "Rafael J. Wysocki" <rafael@kernel.org>
To: Samuel Wu <wusamuel@google.com>
Cc: "Rafael J. Wysocki" <rafael@kernel.org>,
Len Brown <lenb@kernel.org>, Pavel Machek <pavel@kernel.org>,
tuhaowen@uniontech.com, Saravana Kannan <saravanak@google.com>,
"Rafael J. Wysocki" <rafael.j.wysocki@intel.com>,
kernel-team@android.com, linux-pm@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v7 0/2] PM: Support aborting sleep during filesystem sync
Date: Thu, 20 Nov 2025 22:35:09 +0100 [thread overview]
Message-ID: <CAJZ5v0in-am98cG9VcdO2cCz8swunoV-M6517wb37+BOKAh6tg@mail.gmail.com> (raw)
In-Reply-To: <20251119171426.4086783-1-wusamuel@google.com>
On Wed, Nov 19, 2025 at 6:14 PM Samuel Wu <wusamuel@google.com> wrote:
>
> At the start of suspend and hibernate, filesystems will sync to save the
> current state of the device. However, the long tail of the filesystem
> sync can take upwards of 25 seconds. If during this filesystem sync
> there is some wakeup signal, it will not be processed until the sync is
> complete; from a user's perspective, this looks like the device is
> unresponsive to any form of input.
>
> This patch adds functionality to handle a sleep abort signal when in
> the filesystem sync phase of suspend or hibernate. This topic was first
> discussed by Saravana Kannan at LPC 2024 [1], where the general
> consensus was to allow filesystem sync on a parallel thread. In case of
> a wakeup signal, the suspend process will stop waiting on an in-progress
> filesystem sync, and instead abort suspend before the filesystem sync is
> complete.
>
> Furthermore, in the case of the back-to-back sleeps, a subsequent
> filesystem sync is enqueued to ensure the latest files are synced right
> before sleep. The framework still allows for an early abort in this case.
>
> [1]: https://lpc.events/event/18/contributions/1845/
>
> Suggested-by: Saravana Kannan <saravanak@google.com>
> Suggested-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
> Signed-off-by: Samuel Wu <wusamuel@google.com>
>
> Samuel Wu (2):
> PM: Add framework to abort during fs_sync
> PM: Call pm_sleep_fs_sync() instead of ksys_sync_helper()
Both patches applied as 6.19 material with updated subjects and
changelogs, thanks!
prev parent reply other threads:[~2025-11-20 21:35 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-19 17:14 Samuel Wu
2025-11-19 17:14 ` [PATCH v7 1/2] PM: Add framework to abort during fs_sync Samuel Wu
2025-11-19 17:14 ` [PATCH v7 2/2] PM: Call pm_sleep_fs_sync() instead of ksys_sync_helper() Samuel Wu
2025-11-20 21:35 ` Rafael J. Wysocki [this message]
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=CAJZ5v0in-am98cG9VcdO2cCz8swunoV-M6517wb37+BOKAh6tg@mail.gmail.com \
--to=rafael@kernel.org \
--cc=kernel-team@android.com \
--cc=lenb@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=pavel@kernel.org \
--cc=rafael.j.wysocki@intel.com \
--cc=saravanak@google.com \
--cc=tuhaowen@uniontech.com \
--cc=wusamuel@google.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®