RE: [PATCH] EDAC/mc: Convert the poll period to jiffies when it is changed
From: Qiuxu (Leo) Zhuo
Date: Sun Nov 22 2026 - 22:14:25 EST
> From: Ahmed Abdelfattah via B4 Relay
> <devnull+me.ahmedabdelfattah.dev@xxxxxxxxxx>
> Sent: Friday, November 20, 2026 2:22 AM
> To: Borislav Petkov <bp@xxxxxxxxx>; Tony Luck <tony.luck@xxxxxxxxx>
> Cc: linux-edac@xxxxxxxxxxxxxxx; linux-kernel@xxxxxxxxxxxxxxx; Ahmed Abdelfattah
> <me@xxxxxxxxxxxxxxxxxxxx>
> Subject: [PATCH] EDAC/mc: Convert the poll period to jiffies when it is changed
>
> From: Ahmed Abdelfattah <me@xxxxxxxxxxxxxxxxxxxx>
>
> Writing edac_mc_poll_msec at run time re-arms every polled memory controller
> through edac_mc_reset_delay_period(), which passes the new value to
> edac_mod_work() as it is. mod_delayed_work() takes jiffies, so the first poll after
> the write comes "value" jiffies later rather than "value" milliseconds: at HZ=300,
> writing 2000 puts the next poll 6.7 s out. edac_mc_workq_function() re-arms with
> msecs_to_jiffies(), so only that first poll is off.
>
> Before commit c4cf3b454eca ("EDAC: Rework workqueue handling") this path
> converted the value through edac_mc_workq_setup(), and
> edac_device_reset_delay_period() still does. Convert it here as well.
>
> Fixes: c4cf3b454eca ("EDAC: Rework workqueue handling")
> Signed-off-by: Ahmed Abdelfattah <me@xxxxxxxxxxxxxxxxxxxx>
LGTM. Thanks.
Reviewed-by: Qiuxu Zhuo <qzhuo@xxxxxxxxxx>