Re: [PATCH] EDAC/mc: Convert the poll period to jiffies when it is changed
From: Borislav Petkov
Date: Mon Nov 23 2026 - 00:08:27 EST
On Thu, Nov 19, 2026 at 08:22:07PM +0200, Ahmed Abdelfattah via B4 Relay wrote:
> diff --git a/drivers/edac/edac_mc.c b/drivers/edac/edac_mc.c
> index fd70caa85574..787bef803ef0 100644
> --- a/drivers/edac/edac_mc.c
> +++ b/drivers/edac/edac_mc.c
> @@ -499,7 +499,7 @@ void edac_mc_reset_delay_period(unsigned long value)
> mci = list_entry(item, struct mem_ctl_info, link);
>
> if (mci->op_state == OP_RUNNING_POLL)
> - edac_mod_work(&mci->work, value);
> + edac_mod_work(&mci->work, msecs_to_jiffies(value));
Ok, pls go through all callers of edac_mod_work() and make sure they all pass
in jiffies. Then rename its argument from "value" to "jiffies" so that it is
clear what it receives.
This would be a complete fix then.
Thx.
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette