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 EF715C00A5A for ; Thu, 19 Jan 2023 16:48:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229615AbjASQsg (ORCPT ); Thu, 19 Jan 2023 11:48:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41730 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229618AbjASQsg (ORCPT ); Thu, 19 Jan 2023 11:48:36 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C5436A4C; Thu, 19 Jan 2023 08:48:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; 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=UMt9EKesgL1ePG0Sq6eLmj2qeGzJmamxNy+mPAEw4gc=; b=kZPuFI59lmrfWVhbJpxAYh9PJC ozV0VqYFVGkdTIood/rEI9TKA3HZH4lbOeZwoIyOSTfNZb92JUcQCk/Zs/iK4aBB1fFqQPo3GFlUu kXtKyCQ9UkSQJO8kBg4x5U4hekdnCsdhdd+ArkdE3l57pxL2LcG/50WdgeNL7Jl0yEQyucFxYpQPA yIriW03rHAY/v/8pP4rPWH2UOivLUwnB2deKFcPa1tS7fddtZZOOKl+K6ZBgmgS4xXtU5POGSdxAT WMIQvSrXG5OwzSBRGpAX0ddATqWpqj20KPOF3bkY25IpzdXiFdvRXQ6fBhmz2KJ35Pf6FQfaYMmaJ PDPxsKbg==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1pIY5V-0065fR-7t; Thu, 19 Jan 2023 16:48:29 +0000 Date: Thu, 19 Jan 2023 08:48:29 -0800 From: Christoph Hellwig To: David Howells Cc: Christoph Hellwig , Al Viro , Christoph Hellwig , Jens Axboe , linux-block@vger.kernel.org, linux-fsdevel@vger.kernel.org, Matthew Wilcox , Jan Kara , Jeff Layton , Logan Gunthorpe , linux-kernel@vger.kernel.org Subject: Re: [PATCH v6 01/34] vfs: Unconditionally set IOCB_WRITE in call_write_iter() Message-ID: References: <167391047703.2311931.8115712773222260073.stgit@warthog.procyon.org.uk> <167391048988.2311931.1567396746365286847.stgit@warthog.procyon.org.uk> <2731230.1674128066@warthog.procyon.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2731230.1674128066@warthog.procyon.org.uk> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org On Thu, Jan 19, 2023 at 11:34:26AM +0000, David Howells wrote: > io_uring is a bit problematic in this regard. io_prep_rw() starts the > initialisation of the kiocb, so io_read() and io_write() can't just > reinitialise it. OTOH, I'm not sure io_prep_rw() has sufficient information > to hand. It could probably be refactored. That being said, I suspect we're better off deferring the whole iov_iter direction cleanup. It's a bit ugly right now, but there is nothing urgent. The gup pin work otoh really is something we need to get down rather sooner than later. So what about deferring this whole cleanup for now?