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=-2.4 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=no 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 8C67BC33CB1 for ; Wed, 15 Jan 2020 16:26:56 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 4D2782073A for ; Wed, 15 Jan 2020 16:26:56 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b="N9MbVpGj" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4D2782073A Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=ziepe.ca Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id DE9B88E0007; Wed, 15 Jan 2020 11:26:55 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id D9B568E0006; Wed, 15 Jan 2020 11:26:55 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id CB01A8E0007; Wed, 15 Jan 2020 11:26:55 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0222.hostedemail.com [216.40.44.222]) by kanga.kvack.org (Postfix) with ESMTP id B5DFF8E0006 for ; Wed, 15 Jan 2020 11:26:55 -0500 (EST) Received: from smtpin16.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with SMTP id 6528F824805A for ; Wed, 15 Jan 2020 16:26:55 +0000 (UTC) X-FDA: 76380397590.16.grain13_5979c06e86e25 X-HE-Tag: grain13_5979c06e86e25 X-Filterd-Recvd-Size: 3968 Received: from mail-qt1-f195.google.com (mail-qt1-f195.google.com [209.85.160.195]) by imf40.hostedemail.com (Postfix) with ESMTP for ; Wed, 15 Jan 2020 16:26:54 +0000 (UTC) Received: by mail-qt1-f195.google.com with SMTP id e25so4936085qtr.13 for ; Wed, 15 Jan 2020 08:26:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=BGhoOyu5VQ9UNwECtfExQGuAJzqWLNe3068aiRd3j68=; b=N9MbVpGjbi4k9kiTHfugxxCqckr+FEPgRaTd1X13kFFNn75b2OUvIFegFjnLjH4MET vYHvGAv/cOaMEmtOO8gVpi25xQTiXiYNaLyRqrx7nJ22WyoLjGEe9PnBvg0thLlOi5tN vLSwngsRsi6ngXhfvRJQMXOtScF1i499fQboIHbYUwdCcRHcrovwlqPNkoF8l5B8C6xk zwDNP+6+/F2wp5Ak918pWlHJF76FP6OC+sswqBL8ciBYxn0R5C/pVF4Y9JQCRnOJSIEw k+WkZdWPlT1Nlfh6HzUYA97cC9iZdhJFTeA66t2cEmmsVdLY6n3QrGD0L/KbrRmCllm/ ehuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=BGhoOyu5VQ9UNwECtfExQGuAJzqWLNe3068aiRd3j68=; b=e+i25YfVaFjphnSxGT7HVZ5+lKnqBc2DpgSUwEiyoSYcyhCRL6vIjXvWejkL4QqC98 6z8bPOw6Xn1gcEyWZ1CDI4JK6PA2LbdvSGmO1dX4CMC+gLiXkMbEtkLrigIoCRrKB8e2 ibOAUsmNQZFycPEvX9fxXNrJObm5z1QoRf2e4CszwS2X6eka8dEBrOmj3O++AJO+ByF8 I4uv/b/6g4QpdTwGWU4fF3P5J78dUIkBIi7rb6RCEBrJ/pIENuhdDl1g/DCuW3F8JgXc 9VK++oXNM437LIwpY//pa1m21n1+3rUY4OxhJzTjoqX6BGhsn1z0hI7l+dhkTg5okOls +9QQ== X-Gm-Message-State: APjAAAV/wyfAsOyA+fITkZ3WCABYZnxJzi1QPQtqxZrhFXc96V89j0r0 lRyD8axJhtr1bf3W50GXED+r1g== X-Google-Smtp-Source: APXvYqxK3fXxJYK2OHY5fNbL0IWIdwQXnxlcW9LltTOQTnJ8odVy9pqrM8Tc37VCTRCWaseM/4cyKQ== X-Received: by 2002:ac8:4657:: with SMTP id f23mr4369118qto.378.1579105614247; Wed, 15 Jan 2020 08:26:54 -0800 (PST) Received: from ziepe.ca (hlfxns017vw-142-68-57-212.dhcp-dynamic.fibreop.ns.bellaliant.net. [142.68.57.212]) by smtp.gmail.com with ESMTPSA id z141sm8675109qkb.63.2020.01.15.08.26.53 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 15 Jan 2020 08:26:53 -0800 (PST) Received: from jgg by mlx.ziepe.ca with local (Exim 4.90_1) (envelope-from ) id 1irlVN-0001qT-27; Wed, 15 Jan 2020 12:26:53 -0400 Date: Wed, 15 Jan 2020 12:26:53 -0400 From: Jason Gunthorpe To: Christoph Hellwig Cc: linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, Waiman Long , Peter Zijlstra , Thomas Gleixner , Ingo Molnar , Will Deacon , Andrew Morton , linux-ext4@vger.kernel.org, cluster-devel@redhat.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: RFC: hold i_rwsem until aio completes Message-ID: <20200115162653.GC25201@ziepe.ca> References: <20200114161225.309792-1-hch@lst.de> <20200114192700.GC22037@ziepe.ca> <20200115065614.GC21219@lst.de> <20200115132428.GA25201@ziepe.ca> <20200115153614.GA31296@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200115153614.GA31296@lst.de> User-Agent: Mutt/1.9.4 (2018-02-28) X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Wed, Jan 15, 2020 at 04:36:14PM +0100, Christoph Hellwig wrote: > synchronous and currently hack that up, so a version of the percpu_ref > that actually waits for the other references to away like we hacked > up various places seems to exactly suit your requirements. Ah, yes, sounds like a similar goal, many cases I'm thinking about also hack up a kref to trigger a completion to make it synchronous. Jason