Re: [PATCH] lib/genalloc: use try_cmpxchg in {set,clear}_bits_ll

From: Linus Torvalds
Date: Mon Jan 23 2023 - 20:51:43 EST


On Mon, Jan 23, 2023 at 4:11 PM Mateusz Guzik <mjguzik@xxxxxxxxx> wrote:
>
> On another point how to end up dealing with lockref less, I have to
> note glibc switched fstat(fd, buf) to use newfstatat(fd, "", buf,
> AT_EMPTY_PATH) internally.

Yeah, that's just plain stupid.

I don't know what the thinking (or rather, lack-thereof) was inside
glibc for that one.

Linus