Re: [PATCH] sched_ext: Use sizeof_field for key_len in dsq_hash_params

From: Tejun Heo
Date: Fri Dec 13 2024 - 11:54:49 EST


On Fri, Dec 13, 2024 at 05:52:54PM +0800, Liang Jie wrote:
> From: Liang Jie <liangjie@xxxxxxxxxxx>
>
> Update the `dsq_hash_params` initialization to use `sizeof_field`
> for the `key_len` field instead of a hardcoded value.
>
> This improves code readability and ensures the key length dynamically
> matches the size of the `id` field in the `scx_dispatch_q` structure.
>
> Signed-off-by: Liang Jie <liangjie@xxxxxxxxxxx>

Applied to sched_ext/for-6.14.

Thanks.

--
tejun