Re: [PATCH] cgroup: Preserve sign for fractional input

From: Tejun Heo

Date: Fri Nov 27 2026 - 09:49:12 EST


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