在 2024/10/5 0:31, Bart Van Assche 写道:
On 10/4/24 5:40 AM, Zhu Yanjun wrote:
So I add a jiffies (u64) value into the name.
I don't think that embedding the value of the jiffies counter in the
kmem cache names is sufficient to make cache names unique. That sounds
like a fragile approach to me.
Sorry. I can not get you. Why jiffies counter is not sufficient to make
cache names unique? And why is it a fragile approach?
Can you share your advice with us?
I read your latest commit. In your commit, the ida is used to make cache
names unique. It is a good approach if it can fix this problem.
The approach of jiffies seems clumsy. But it seems to be able to fix
this problem, too. I can not see any risks about this jiffies appraoch.
Zhu Yanjun
Bart.
--
Best Regards,
Yanjun.Zhu