On Sun, 3 Sept 2023 at 13:49, Mateusz Guzik <mjguzik@xxxxxxxxx> wrote: > > It dodges lockref et al, but it does not dodge SMAP which accounts for > the difference. Yeah, just doing that "check if the name is empty" is not free. The CLAC/STAC overhead is real. I see no way of avoiding that cost, though - the only true fix is to fix the glibc braindamage. In fact, I suspect that my stupid patch is unacceptable exactly because it actually makes a *real* fstatat() with a real path much worse due to the "check if the path is empty". We could possibly move that check into the getname() path, and at least avoid the extra overhead. Linus