Re: [PATCH v3 2/2] pid: only take pidmap_lock once on alloc

From: Matthew Wilcox

Date: Sun Dec 07 2025 - 02:21:13 EST


On Sat, Dec 06, 2025 at 02:19:55PM +0100, Mateusz Guzik wrote:
> - if (!pid)
> + if (unlikely(!pid))

Does this change anything? I was under the impression that gcc already
treats !p as unlikely.