Re: [PATCH] hrtimer: Fix the incorrect initialization of timer->is_hard
From: cuiguoqi
Date: Sat Mar 22 2025 - 04:24:22 EST
Hi tglx,
First of all, I'd like to thank you for your reply and for pointing out the email issue.
As you've accurately noted, when PREEMPT_RT is disabled, it introduces a certain
degree of ambiguity for kernel developers. So far, no malfunctions have been
observed as a direct consequence of this.
This issue came to light during kernel development when using the is_hard flag,
where the expected logic was not achieved.Naturally, we opted for the more reliable
is_soft flag to address the situation.
Consequently, when PREEMPT_RT is disabled, there is a potential risk if developers
choose to use the is_hard flag. I firmly believe this risk should not be overlooked.
I concur with your analysis that one of these flags is redundant. In fact,
it might be possible to consolidate them based on the overall requirements.
Thanks.
Cui Guoqi