Re: [PATCH] psi:fix divide by zero in psi_update_stats

Peter Zijlstra
2019-11-08T09:31:44Z

On Fri, Nov 08, 2019 at 03:33:24PM +0800, tim wrote:
> In psi_update_stats, it is possible that period has value like
> 0xXXXXXXXX00000000 where the lower 32 bit is 0, then it calls div_u64 which

How can this happen? Is that a valid case or should we be avoiding that?