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 77395C25B4E for ; Tue, 24 Jan 2023 19:04:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234653AbjAXTEo (ORCPT ); Tue, 24 Jan 2023 14:04:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42614 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234037AbjAXTDy (ORCPT ); Tue, 24 Jan 2023 14:03:54 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E0424ED07; Tue, 24 Jan 2023 11:03:54 -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=olh9ti9IVVMcl+Ry3/i8sJbMBH0s8tB/dxhzDY8vfHU=; b=jOjIszr83qXJt7PWnWHuUWFiLg 8EPG0gvx3uIk69cTTqUGNp3c9OEdt2Ay0FwwEOrVuCpEsm6/SSeaCOdY6pbdjjWj+9vUfm0EgGobe k4r35O9v7cUSQOzF2ehV/pqw4HkuMqOgj+y5/MOBApW7/cxNM9MNYOhFiY8xGElP/fY3GVU2DFiHj fy/MwfajcSCaYip8XGPO5s2LIQ57+4XxuJhX5QKXisiWLrcyplaibNxmtixtPHcP+LHzl2sfxjXrb qpIcokpN7BH8a8GcyvQkGbR5cOYWHZDqmBc3bClfHieLBccR7ofeNj0p7CM0hoaRksv2K3sEuOYiD wJGwm+sg==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1pKOaA-0050QJ-GG; Tue, 24 Jan 2023 19:03:46 +0000 Date: Tue, 24 Jan 2023 11:03:46 -0800 From: Christoph Hellwig To: David Howells Cc: Al Viro , Christoph Hellwig , Matthew Wilcox , Jens Axboe , Jan Kara , Jeff Layton , David Hildenbrand , Jason Gunthorpe , Logan Gunthorpe , linux-fsdevel@vger.kernel.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, Christoph Hellwig Subject: Re: [PATCH v9 8/8] block: convert bio_map_user_iov to use iov_iter_extract_pages Message-ID: References: <20230124170108.1070389-1-dhowells@redhat.com> <20230124170108.1070389-9-dhowells@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230124170108.1070389-9-dhowells@redhat.com> 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-kernel@vger.kernel.org On Tue, Jan 24, 2023 at 05:01:08PM +0000, David Howells wrote: > This will pin pages or leave them unaltered rather than getting a ref on > them as appropriate to the iterator. > > The pages need to be pinned for DIO rather than having refs taken on them > to prevent VM copy-on-write from malfunctioning during a concurrent fork() > (the result of the I/O could otherwise end up being visible to/affected by > the child process). Reviewed-by: Christoph Hellwig