Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1166858ybe; Wed, 11 Sep 2019 10:21:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqz5ugO1PbrHSHrE6alQL8k9J79xnyJIVfbm9SLbe4j7WEGsvwIhOWLSj3Mku95gh6B45gYh X-Received: by 2002:aa7:da59:: with SMTP id w25mr36054714eds.143.1568222513203; Wed, 11 Sep 2019 10:21:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568222513; cv=none; d=google.com; s=arc-20160816; b=BJttUZPH7L9E7oKS2szWfZIIds48LpciMwpBznBDgoPJIWmjwbjY4H7RgoSb94JnMh D6zqkAQm9STjMuyqIvuCT/GRjce+qHo2EciXZsW01fRGjSxOnnRkCazrtkm9HN5QZXbA HObwqD/QMqZvGDk4qyo46n9C6K1UXyz9jRfuC9bpErScavuRUDjNESuk9/ML5vYYI5wb 6klsu4rtuAsy0C/NjKzAMq24SKzC6md+46c3nq4dqUQh360imVx5yXQMpLFJQWifS94r XEiz4CR91W8VTvRjLPC/9mMrf6a1HwqDHXHimslF5Vz0PhQFIGCxgSw94voqLn+ACVr7 VxGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:mail-followup-to :reply-to:message-id:subject:cc:to:from:date; bh=5Hhqig6BkJ8p5uO0vcMR/jV3MKwcVc4vd2as8lb8lVY=; b=OyJMfsCEP8cWRp8soSxcuzSfFCC9hlZpKFDyC23R6GcaXBieaSxdwFwW3uoGudHDzy 2il25HStMisp05seJoDAbynxaba1IDr4E7ME6hTKrLBXYtmZP+aieGMT+8tY1L/jQYs3 rpUW0WgkDQUrFdJA2iapnUgZUn0DXjjTT4Tv69ef3jj99ygvfy05oe4UfUxUQ8+cLMV6 ePOeoFPgFugbEHdaHc4CckvHpfWvBtIEBZR1ohZiWiYsXA7K2bSTBuRlcRUcYetnAElz 0InjQFLsmLiqzSFdaCqzyeqd1MudkTCU/IsuwBGZqUry/AHcM+pJJbEVZ9NE/HIfBksk et/Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k11si12896562eds.29.2019.09.11.10.21.23; Wed, 11 Sep 2019 10:21:53 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729479AbfIKRVM (ORCPT + 99 others); Wed, 11 Sep 2019 13:21:12 -0400 Received: from mx2.suse.de ([195.135.220.15]:54032 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729130AbfIKRVM (ORCPT ); Wed, 11 Sep 2019 13:21:12 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id B2109AF57; Wed, 11 Sep 2019 17:21:10 +0000 (UTC) Received: by ds.suse.cz (Postfix, from userid 10065) id B3C66DA7D9; Wed, 11 Sep 2019 19:21:33 +0200 (CEST) Date: Wed, 11 Sep 2019 19:21:33 +0200 From: David Sterba To: Goldwyn Rodrigues Cc: linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org, linux-btrfs@vger.kernel.org, hch@infradead.org, andres@anarazel.de, david@fromorbit.com, riteshh@linux.ibm.com, linux-f2fs-devel@lists.sourceforge.net, Goldwyn Rodrigues Subject: Re: [PATCH 1/3] btrfs: fix inode rwsem regression Message-ID: <20190911172133.GJ2850@twin.jikos.cz> Reply-To: dsterba@suse.cz Mail-Followup-To: dsterba@suse.cz, Goldwyn Rodrigues , linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org, linux-btrfs@vger.kernel.org, hch@infradead.org, andres@anarazel.de, david@fromorbit.com, riteshh@linux.ibm.com, linux-f2fs-devel@lists.sourceforge.net, Goldwyn Rodrigues References: <20190911164517.16130-1-rgoldwyn@suse.de> <20190911164517.16130-2-rgoldwyn@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190911164517.16130-2-rgoldwyn@suse.de> User-Agent: Mutt/1.5.23.1-rc1 (2014-03-12) Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Wed, Sep 11, 2019 at 11:45:15AM -0500, Goldwyn Rodrigues wrote: > From: Goldwyn Rodrigues > > This is similar to 942491c9e6d6 ("xfs: fix AIM7 regression") > Apparently our current rwsem code doesn't like doing the trylock, then > lock for real scheme. So change our read/write methods to just do the > trylock for the RWF_NOWAIT case. > > Fixes: edf064e7c6fe ("btrfs: nowait aio support") > Signed-off-by: Goldwyn Rodrigues The subject seems to be a bit confusing so I'll update it, otherwise patch added to devel queue, thanks.