Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp3435355pxp; Tue, 22 Mar 2022 20:53:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwbFKOdoxMOhCagvmfQjLDfCGz0zelLz8kG8MsSrNhgDOstHSHY67bKZ6yJe+3EHWfQMQ8/ X-Received: by 2002:a17:907:3f8f:b0:6df:c340:f91 with SMTP id hr15-20020a1709073f8f00b006dfc3400f91mr21315159ejc.765.1648007586193; Tue, 22 Mar 2022 20:53:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648007586; cv=none; d=google.com; s=arc-20160816; b=nWXu60EXDb76kpEm5hjZlz96RPpYkOpHIEu7X4U99dQX3OjyrBqOnHHr0Ee2oJlxWf f3dovWJm82aFRhf8HQ6itUzDK9XCP4VQbXqbzX3mtXYbywinJ9OPJNa56KYWzC12LF/9 dRunrf2bbReXS20aF588/Fz12/TR/8Ad/wNzjExSq+0cuqMXj3C9JjLuGhvtZjhg250C rrnoPDqxOXb7DkG/iNBsUju6UbC8cGr2Zk64MN/9KhthKUNX1dNsT53WlGfAJ1HloSca IoeF4RGnVrSVPUFq+G1kB4qUchmRk1EZxbF8ICkoLQDgFs6JxQXYibd/MRodtUlunmcb jKXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=xVTkoL6IvScupcc82uGKxY6t/dEoMhywmokb0M6nLRQ=; b=OqxSZSxnYm9sQ+1+dY+3jYNJHwyNvyTyBXsE9W1S3+C/W5zcIOsH61NxlltWW737G9 WI2L8d+mrg1DyLT8Olj6M1LP7v0JXbDDp6mW0Lz428kxoUzjn95HdQ0FpxjKo9beUu1A 9xTucY4ztJMCYY3tucFjr32Mj741rULV+zzzL/4EbyEcs5VXvQNyOlBQyqq5beQ/pU/M Cis9LWqKLQgiScC3YhpFKa+wWRV6EmaNwmbgSZfZ/HW+x6lHMV9G9+yK3FM+4qss5ayV DvRV8WI6YiaLu64hFcvAD1u4qXDhFyNxzFHHjBVFb9cAauWodNZomlAJbuuWukSBS8Nw gvxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=SxzIsWJt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a14-20020a056402236e00b00418c2b5bee7si15112471eda.457.2022.03.22.20.52.41; Tue, 22 Mar 2022 20:53:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=SxzIsWJt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239842AbiCVRw2 (ORCPT + 99 others); Tue, 22 Mar 2022 13:52:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56002 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239841AbiCVRwZ (ORCPT ); Tue, 22 Mar 2022 13:52:25 -0400 Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 73F106D3BC for ; Tue, 22 Mar 2022 10:50:56 -0700 (PDT) Received: by mail-lf1-x136.google.com with SMTP id w7so31077866lfd.6 for ; Tue, 22 Mar 2022 10:50:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=xVTkoL6IvScupcc82uGKxY6t/dEoMhywmokb0M6nLRQ=; b=SxzIsWJtVeaoBw1JvaNfWaX6iOJGZ1awG+smm6ZI3+2778B8fIRobefB0fFKcM4q6y 2r4/TVzojriOvGIybdvH82leIyhyqc+uKQhIoA5t/IeWmMqoqy0YAgzr+NxHjUuOLxlx Q2wcsmI+T+V32+6FiBPcrXt1ViZUuv3r4KJS0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=xVTkoL6IvScupcc82uGKxY6t/dEoMhywmokb0M6nLRQ=; b=xzYBK97pebPrZag6cYoqLl7JigHXZk5UjFWa9hEhCkDH+2YYzzmNlOZtqvlKu2WpvI JCTJutVHJEReQmCrfPXhCmZuJR8j9ChAZ86yC5MPv0AS9pHYaHApS47vGQDt2LwAm2aH zek0FrCdRnGUkvkUxAyiOcyBjdkrpnHvRl10POffYztrl0WDz/ycTykKmQZ9vty03fzc VqUmG5P5T/flDu5ZUow5OKX5DTudcfVnZEAajqrSkmun9L+Rsqp1BBqqU/GhglcCHzwO s2tDldc3npnHhjOeYykTOYb3P3QGdmbDW9MyvRiZczXD4A530LjQeLWoc7niAVu3nJbY NQvw== X-Gm-Message-State: AOAM530mQsBEQr/dyiwimNhn6DTyWvVM62EBfIFw6SNxbKAvqOvv7jFe vnfUwiaMXq6CzDnyfMJ24RbpTJwLSuHTLrigz3g= X-Received: by 2002:ac2:5bcb:0:b0:44a:1fd6:6b14 with SMTP id u11-20020ac25bcb000000b0044a1fd66b14mr11745765lfn.186.1647971453692; Tue, 22 Mar 2022 10:50:53 -0700 (PDT) Received: from mail-lj1-f174.google.com (mail-lj1-f174.google.com. [209.85.208.174]) by smtp.gmail.com with ESMTPSA id h8-20020ac25d68000000b00447b5cad2a7sm2270462lft.228.2022.03.22.10.50.51 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 22 Mar 2022 10:50:52 -0700 (PDT) Received: by mail-lj1-f174.google.com with SMTP id u3so25094704ljd.0 for ; Tue, 22 Mar 2022 10:50:51 -0700 (PDT) X-Received: by 2002:a2e:9904:0:b0:247:ec95:fdee with SMTP id v4-20020a2e9904000000b00247ec95fdeemr20114422lji.291.1647971451760; Tue, 22 Mar 2022 10:50:51 -0700 (PDT) MIME-Version: 1.0 References: <51cded74-3135-eed8-06d3-0b2165e3b379@redhat.com> In-Reply-To: <51cded74-3135-eed8-06d3-0b2165e3b379@redhat.com> From: Linus Torvalds Date: Tue, 22 Mar 2022 10:50:35 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [GIT PULL] f2fs for 5.18 To: Waiman Long , Tim Murray Cc: Jaegeuk Kim , Linux Kernel Mailing List , Linux F2FS Dev Mailing List Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 22, 2022 at 10:37 AM Waiman Long wrote: > > AFAICS, the read-unfair rwsem code is created to resolve a potential > lock starvation problem that they found on linux-5.10.y stable tree. I > believe I have fixed that in the v5.11 kernel, see commit 2f06f702925 > ("locking/rwsem: Prevent potential lock starvation"). Ahh. Adding Tim Murray to the cc, since he was the source of that odd reader-unfair thing. I really *really* dislike people thinking they can do locking primitives, because history has taught us that they are wrong. Even when people get the semantics and memory ordering right (which is not always the case, but at least the f2fs code uses real lock primitives - just oddly - and should thus be ok), it invariably tends to be a sign of something else being very wrong. And I can easily believe that in this case it's due to a rmsem issue that was already fixed long long ago as per Waiman. Can people please test with the actual modern rwsem code and with the odd reader-unfair locks disabled? Linus