From: Tejun Heo <tj@kernel.org>
To: Zhiqi Zhang <zhiqizhangg@gmail.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>,
Michal Koutny <mkoutny@suse.com>,
cgroups@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] cgroup: Preserve sign for fractional input
Date: Fri, 27 Nov 2026 04:49:00 -1000 [thread overview]
Message-ID: <c8b240516272e7a805ef030b0945f52a@kernel.org> (raw)
In-Reply-To: <20261126065958.89207-1-zhiqizhangg@gmail.com>
Hello, Zhiqi.
On Thu, Nov 26, 2026 at 02:59:58PM +0800, Zhiqi Zhang wrote:
> cgroup_parse_float() parses the whole and fractional parts separately with
> sscanf(). The sign is only carried by the whole part, so inputs whose
> whole part is zero, such as "-0.5", are composed as positive values.
> Inputs such as "-1.5" are also composed as -0.5.
This no longer applies. cgroup/for-7.4-fixes now has 4ac4766e93f3 ("cgroup:
Fix divide error on long fractions in cgroup_parse_float()"), which rewrote
the fraction parsing. Can you please rebase on top of it and resend?
Thanks.
--
tejun
prev parent reply other threads:[~2026-11-27 14:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-26 6:59 [PATCH] cgroup: Preserve sign for fractional input Zhiqi Zhang
2026-11-27 14:49 ` Tejun Heo [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=c8b240516272e7a805ef030b0945f52a@kernel.org \
--to=tj@kernel.org \
--cc=cgroups@vger.kernel.org \
--cc=hannes@cmpxchg.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mkoutny@suse.com \
--cc=zhiqizhangg@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