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=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS 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 9BF24C83014 for ; Wed, 2 Dec 2020 08:02:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 67C1F20C56 for ; Wed, 2 Dec 2020 08:02:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728884AbgLBICp (ORCPT ); Wed, 2 Dec 2020 03:02:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39222 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726148AbgLBICp (ORCPT ); Wed, 2 Dec 2020 03:02:45 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F19E4C0613D6; Wed, 2 Dec 2020 00:02:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=JxHJ+R1ANKJAKDX7Q5cnIeQ+a5TaYs4+Cc88jWe2k9s=; b=c9k1aD0OLPfTXdBQrxt57cNjL8 JdCu7Oxex7K9BuyIUI/4kk7GDWSCe8Lriqi4P19KJSVnhFfCrP2qHPaWw69iV/tmZSFa9z3pZW329 qh2KwxIkmmU4x39LQtGX80mIcOOXdW4WQOb4dVV/29GPlKe07V3haC/oQICikBouhvVJSZPFPVmpr 1HPS2lk8ZakzkOYtMcTmJha6DBZHhV2qqUqBLhIuHhl00m1UqWI2q79i3LHgwlx6eS05khe100BfI 2K5QvaqjPWbv6YzPY2lUaazyy3CnASkyyoi5vBzS0b4wCjPUzIGRP5Eezixo3aYJMXrcxZc8kDM6r r5mI/lXA==; Received: from hch by casper.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1kkN5M-0004AZ-RV; Wed, 02 Dec 2020 08:02:00 +0000 Date: Wed, 2 Dec 2020 08:02:00 +0000 From: Christoph Hellwig To: Ming Lei Cc: Christoph Hellwig , Pavel Begunkov , Matthew Wilcox , Jens Axboe , linux-block@vger.kernel.org, linux-fsdevel@vger.kernel.org, Johannes Weiner Subject: Re: [PATCH] block: add bio_iov_iter_nvecs for figuring out nr_vecs Message-ID: <20201202080200.GA15726@infradead.org> References: <20201201120652.487077-1-ming.lei@redhat.com> <20201201125251.GA11935@casper.infradead.org> <20201201125936.GA25111@infradead.org> <20201201133226.GA26472@infradead.org> <6cbce034-b8c9-35d5-e805-f5ed0c169e2a@gmail.com> <20201201134542.GA2888@infradead.org> <20201202021021.GB494805@T590> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201202021021.GB494805@T590> X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org On Wed, Dec 02, 2020 at 10:10:21AM +0800, Ming Lei wrote: > > Yes, this will need a careful audit, I'm not too sure offhand. For the > > io_uring case which is sortof the fast path the caller won't free them > > unless we allow the buffer unregistration to race with I/O. > > Loop's aio usage is fine, just found fd_execute_rw_aio() isn't good. Yes. But that one is trivial to fix.