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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DB2C8C433EF for ; Sun, 22 May 2022 11:45:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245122AbiEVLps (ORCPT ); Sun, 22 May 2022 07:45:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49148 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237456AbiEVLpr (ORCPT ); Sun, 22 May 2022 07:45:47 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0716B252AA for ; Sun, 22 May 2022 04:45:44 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id B611668AFE; Sun, 22 May 2022 13:45:40 +0200 (CEST) Date: Sun, 22 May 2022 13:45:40 +0200 From: Christoph Hellwig To: Matthew Wilcox Cc: Al Viro , Christoph Hellwig , Jens Axboe , linux-fsdevel@vger.kernel.org Subject: Re: [RFC] what to do with IOCB_DSYNC? Message-ID: <20220522114540.GA20469@lst.de> References: <20210621142235.GA2391@lst.de> <20210621143501.GA3789@lst.de> <70b5e4a8-1daa-dc75-af58-9d82a732a6be@kernel.dk> <20220522074508.GB15562@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org On Sun, May 22, 2022 at 12:15:59PM +0100, Matthew Wilcox wrote: > > Direct kernel pointer, surely? And from a quick look, > > iov_iter_is_kaddr() checks for the wrong value... > > Indeed. I didn't test it; it was a quick patch to see if the idea was > worth pursuing. Neither you nor Christoph thought so at the time, so > I dropped it. if there are performance improvements to be had from > doing something like that, it's a more compelling idea than just "Hey, > this removes a few lines of code and a bit of stack space from every > caller". Oh, right I actually misremembered what the series did. But something similar except for user pointers might help with the performance issues that Jens sees, and if it does it might be worth it to avoid having both the legacy read/write path and the iter path in various drivers.