From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A8950C10F13 for ; Mon, 8 Apr 2019 16:53:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7A35A20880 for ; Mon, 8 Apr 2019 16:53:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728877AbfDHQx4 (ORCPT ); Mon, 8 Apr 2019 12:53:56 -0400 Received: from prvmx01.microfocus.com ([130.57.1.216]:4837 "EHLO prvmx01.microfocus.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726726AbfDHQx4 (ORCPT ); Mon, 8 Apr 2019 12:53:56 -0400 X-Greylist: delayed 992 seconds by postgrey-1.27 at vger.kernel.org; Mon, 08 Apr 2019 12:53:56 EDT Received: from prvxcaht01.microfocus.com (Not Verified[137.65.249.208]) by prvmx01.microfocus.com with Trustwave SEG (v7,5,8,10121) (using TLS: TLSv1.2, AES256-SHA256) id ; Mon, 08 Apr 2019 10:37:23 -0600 Received: from dbueso.openvpn2.suse.cz (10.100.209.9) by mail.microfocus.com (137.65.249.208) with Microsoft SMTP Server (TLS) id 14.3.339.0; Mon, 8 Apr 2019 10:37:19 -0600 Message-ID: <1554741429.3326.43.camel@suse.com> Subject: Re: [POC][PATCH] xfs: reduce ilock contention on buffered randrw workload From: Davidlohr Bueso To: Jan Kara , Dave Chinner CC: Amir Goldstein , "Darrick J . Wong" , Christoph Hellwig , Matthew Wilcox , , Date: Mon, 8 Apr 2019 09:37:09 -0700 In-Reply-To: <20190408103303.GA18239@quack2.suse.cz> References: <20190404165737.30889-1-amir73il@gmail.com> <20190404211730.GD26298@dastard> <20190408103303.GA18239@quack2.suse.cz> Organization: SUSE Labs Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.26.6 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Originating-IP: [10.100.209.9] Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org On Mon, 2019-04-08 at 12:33 +0200, Jan Kara wrote: > On Fri 05-04-19 08:17:30, Dave Chinner wrote: > > FYI, I'm working on a range lock implementation that should both > > solve the performance issue and the reader starvation issue at the > > same time by allowing concurrent buffered reads and writes to > > different file ranges. > > Are you aware of range locks Davidlohr has implemented [1]? It didn't get > merged because he had no in-tree user at the time (he was more aiming at > converting mmap_sem which is rather difficult). But the generic lock > implementation should be well usable. > > Added Davidlohr to CC. > > Honza > > [1] https://lkml.org/lkml/2017/3/7/22 fyi this was the latest version (had some naming updates per peterz). https://lkml.org/lkml/2018/2/4/232