From: Viresh Kumar <viresh.kumar@linaro.org>
To: Schspa Shi <schspa@gmail.com>
Cc: rafael@kernel.org, linux-pm@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v6 1/2] cpufreq: Abort show/store for half initialized policy
Date: Mon, 16 May 2022 11:24:50 +0100 [thread overview]
Message-ID: <CAKohpo==gvvyd2HxL3sLTqXS-VbFeprkgAdSAjU3mnbq4Qn-Jg@mail.gmail.com> (raw)
In-Reply-To: <20220516030251.42323-1-schspa@gmail.com>
On Mon, 16 May 2022 at 04:03, Schspa Shi <schspa@gmail.com> wrote:
>
> If policy initialization fails after the sysfs files are created,
> there is a possibility that we may end up running show()/store()
> callbacks for half initialized policies, which may have unpredictable
> outcomes.
>
> Abort show/store in such a case by making sure the policy is active.
> Also inactivate the policy on such failures.
>
> Signed-off-by: Schspa Shi <schspa@gmail.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
next prev parent reply other threads:[~2022-05-16 10:25 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-16 3:02 [PATCH v6 1/2] cpufreq: Abort show/store for half initialized policy Schspa Shi
2022-05-16 3:02 ` [PATCH v6 2/2] cpufreq: make interface functions and lock holding state clear Schspa Shi
2022-05-16 10:25 ` Viresh Kumar
2022-05-16 10:24 ` Viresh Kumar [this message]
2022-05-17 19:40 ` [PATCH v6 1/2] cpufreq: Abort show/store for half initialized policy Rafael J. Wysocki
-- strict thread matches above, loose matches on Subject: below --
2022-05-16 2:44 Schspa Shi
2022-05-16 3:15 ` Schspa Shi
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='CAKohpo==gvvyd2HxL3sLTqXS-VbFeprkgAdSAjU3mnbq4Qn-Jg@mail.gmail.com' \
--to=viresh.kumar@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=rafael@kernel.org \
--cc=schspa@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 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).