Re: [patch 14/38] slub: Use prandom instead of get_cycles()

"Vlastimil Babka (SUSE)" <[email protected]> Mon, 13 Apr 2026 11:00:57 +0200
Newsgroups gmane.linux.ports.alpha,gmane.linux.kernel,gmane.linux.kernel.mm,gmane.linux.network,gmane.linux.kernel.wireless.general,gmane.linux.kernel.cryptoapi,gmane.comp.file-systems.ext4,gmane.linux.hams,gmane.linux.ports.arm.kernel,gmane.linux.ports.parisc,gmane.linux.ports.ppc64.devel,gmane.linux.ports.riscv,gmane.linux.ports.sparc
Message-ID <[email protected]>
On 4/10/26 14:19, Thomas Gleixner wrote:
> The decision whether to scan remote nodes is based on a 'random' number
> retrieved via get_cycles(). get_cycles() is about to be removed.
> 
> There is already prandom state in the code, so use that instead.
> 
> Signed-off-by: Thomas Gleixner <[email protected]>
> Cc: Vlastimil Babka <[email protected]>
> Cc: [email protected]

LGTM.

Acked-by: Vlastimil Babka (SUSE) <[email protected]>