Re: [PATCH v2] EDAC/mc: Convert the poll period to jiffies when it is changed

From: Borislav Petkov

Date: Mon Nov 23 2026 - 13:58:50 EST


On Mon, Nov 23, 2026 at 12:55:29PM +0200, Ahmed Abdelfattah via B4 Relay wrote:
> 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 that many jiffies later, not that
> many 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.
>
> All other callers of edac_mod_work() and edac_queue_work() already pass
> jiffies. Name the arguments after the unit they are in: "jiffies" for
> the two workqueue helpers, and "msec" for edac_mc_reset_delay_period(),
> as edac_device_reset_delay_period() has it.
>
> Fixes: c4cf3b454eca ("EDAC: Rework workqueue handling")
> Reviewed-by: Qiuxu Zhuo <qzhuo@xxxxxxxxxx>

You cannot retain a Reviewed-by tag when you change a patch considerably.

Before you submit more patches, I think you should go and read some of our
documentation first:

https://docs.kernel.org/process/development-process.html
https://www.kernel.org/doc/html/latest/process/submitting-patches.html

Thx.

--
Regards/Gruss,
Boris.

https://people.kernel.org/tglx/notes-about-netiquette