Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8A960C05027 for ; Tue, 24 Jan 2023 01:51:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231923AbjAXBvW (ORCPT ); Mon, 23 Jan 2023 20:51:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33084 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229627AbjAXBvU (ORCPT ); Mon, 23 Jan 2023 20:51:20 -0500 Received: from mail-qt1-x82b.google.com (mail-qt1-x82b.google.com [IPv6:2607:f8b0:4864:20::82b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D08F939B81 for ; Mon, 23 Jan 2023 17:51:18 -0800 (PST) Received: by mail-qt1-x82b.google.com with SMTP id s4so11995359qtx.6 for ; Mon, 23 Jan 2023 17:51:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=Hc29y/67bAFoLlAsTJKkkXERX+cLita5Lt66CltgCnw=; b=fUQOd72L31bn4Cg+3sSq8xIhvzYLuw8BAyzrT9icuqeZv8T5xqW3e8gvWrac8CO8ar NTNS0HHmgakLe/W8CP11YsrsW6DraN29enGGsw//TIkney5EKec20GmmSDZsrRkQAiOM 01rKPEd0C/PFJ1CkaN/qO7S0DA7pWsbA6tyHs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Hc29y/67bAFoLlAsTJKkkXERX+cLita5Lt66CltgCnw=; b=OzBimpDqaoa7q+YqnAI8EqqenbOuj629UZ6WvpA/7HHBTF5ezJjwsrOvWQ5V57vTlL xH0uNn2p1GA0zh01Q3+BwIeZIXEm2DaaR9JiEFXtT3/WWE54oNz9/S7SIlhMO45XnrWD zWRYZPpC3PQJI4CcY0VELDGRq7fkEEokrbypPQnmPLFufPx6QxcgWkeO5tpubIIZiLEh 2LISBIVHYcBAenMdd837AC10FjvUEVyniWa3Y8eRZfGpkROIT1LdglipQCN7naTGSCUj aWFZsz+jEDJBS9WA9MeYscybg8ZDwfZhGa63w07JEJYysENDwlac4ZSC/wp7QlGI5TJv UGaA== X-Gm-Message-State: AFqh2ko9yfHfyPs6qLyqzaxEI+aTHxakLeFVitl4kibNpMZteFje7eod PH/f5gV8+X599Oo+wPHTPLHEuTa3CF+DlNyV X-Google-Smtp-Source: AMrXdXtlbDO6dMgn0eu5lLoNXDWPED5pp40mYBqwnFEQdQFGMuuEOGD3IK7J+eB3D8/axaPMTelv7Q== X-Received: by 2002:a05:622a:1b25:b0:3b6:9d64:a3a5 with SMTP id bb37-20020a05622a1b2500b003b69d64a3a5mr22168199qtb.43.1674525077770; Mon, 23 Jan 2023 17:51:17 -0800 (PST) Received: from mail-qk1-f169.google.com (mail-qk1-f169.google.com. [209.85.222.169]) by smtp.gmail.com with ESMTPSA id 3-20020a05620a070300b006ff8a122a1asm548354qkc.78.2023.01.23.17.51.16 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 23 Jan 2023 17:51:16 -0800 (PST) Received: by mail-qk1-f169.google.com with SMTP id h11so7401013qkm.5 for ; Mon, 23 Jan 2023 17:51:16 -0800 (PST) X-Received: by 2002:a05:620a:99d:b0:705:efa8:524c with SMTP id x29-20020a05620a099d00b00705efa8524cmr1319577qkx.594.1674525076628; Mon, 23 Jan 2023 17:51:16 -0800 (PST) MIME-Version: 1.0 References: <20230118150703.4024-1-ubizjak@gmail.com> <20230118131825.c6daea81ea1e2dc6aa014f38@linux-foundation.org> <913c01d41f824fa8b3400384437fa0d8@AcuMS.aculab.com> In-Reply-To: From: Linus Torvalds Date: Mon, 23 Jan 2023 17:51:00 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] lib/genalloc: use try_cmpxchg in {set,clear}_bits_ll To: Mateusz Guzik Cc: Al Viro , Uros Bizjak , David Laight , Andrew Morton , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 23, 2023 at 4:11 PM Mateusz Guzik 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