On Mon, 24 Jul 2023 at 09:59, Linus Torvalds torvalds@linux-foundation.org wrote:
Maybe it doesn't matter. Obviously it can't have contention, and your patch in that sense is pretty benign.
But locking is just fundamentally expensive in the first place, and it annoys me that I never realized that pidfd_getfd() did that thing that I knew was broken for /proc.
I've applied the patch, with a much pruned commit message, and just a link to your original email instead.
Linus