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 BDFFBC433F5 for ; Sun, 22 May 2022 07:45:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230461AbiEVHpQ (ORCPT ); Sun, 22 May 2022 03:45:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45248 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229771AbiEVHpN (ORCPT ); Sun, 22 May 2022 03:45:13 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 203F43F8AE for ; Sun, 22 May 2022 00:45:12 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id 83CF968AFE; Sun, 22 May 2022 09:45:09 +0200 (CEST) Date: Sun, 22 May 2022 09:45:09 +0200 From: Christoph Hellwig To: Jens Axboe Cc: Al Viro , Christoph Hellwig , Matthew Wilcox , linux-fsdevel@vger.kernel.org Subject: Re: [RFC] what to do with IOCB_DSYNC? Message-ID: <20220522074508.GB15562@lst.de> References: <20210621135958.GA1013@lst.de> <20210621140956.GA1887@lst.de> <20210621142235.GA2391@lst.de> <20210621143501.GA3789@lst.de> <70b5e4a8-1daa-dc75-af58-9d82a732a6be@kernel.dk> 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 Sat, May 21, 2022 at 04:14:07PM -0600, Jens Axboe wrote: > Then we're almost on par, and it looks like we just need to special case > iov_iter_advance() for the nr_segs == 1 as well to be on par. This is on > top of your patch as well, fwiw. > > It might make sense to special case the single segment cases, for both > setup, iteration, and advancing. With that, I think we'll be where we > want to be, and there will be no discernable difference between the iter > paths and the old style paths. A while ago willy posted patches to support a new ITER type for direct userspace pointer without iov. It might be worth looking through the archives and test that.