From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj2-f12.google.com (mail-pj2-f12.google.com [74.125.227.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DD45C47ECCF for ; Fri, 11 Sep 2026 12:57:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.227.140 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789131446; cv=none; b=P0yWPZrgWPay083AeaLhOyPV0L6gZAjLbJTaMOCVv6sszilNvRoW9rgMyBn9ZxYWCLMNe1jtaa8hVMQTzGlWwl3X7PNVBvvgkA5b5vel9qQ2PlIGJKk0CgB+Z12r2xUeS/wizntfqs0IyeQ0+62/0Fe9u0dSST1vDISFFHBcgoY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789131446; c=relaxed/simple; bh=e3H047kzZPUPF30kyCAWQHM10KFTgYtPCq5VJwN9Kug=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ROCKMvxNduCmD/nYDQSN2eze4FpuF5Dqff2z7+kBuZVYqUe3e2WVaEQhdJ3ZNhabMY7l58cUtBkN1RIXo7tUC/Fn98IGdjHT65Fi5/wDvHGsw/utedrUiYTgIijnkRDXp/6UJ0+hPpYrJjqFA+VonBCbW545ONVS+IcjFOnIAUU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=Qrv2kN5i; arc=none smtp.client-ip=74.125.227.140 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="Qrv2kN5i" Received: by mail-pj2-f12.google.com with SMTP id d9443c01a7336-2db425c9050so91075ad.0 for ; Fri, 11 Sep 2026 05:57:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1789131428; x=1789736228; darn=vger.kernel.org; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=sosg5uQD+znETrHmJcgaZWMkG/+x7W8shGk8HBCGWmk=; b=Qrv2kN5iQb/H4GJLXohxWSq/Y8IVw41su4WaVm/U5ZeYP6tQ8KmZUjelZ8z40vQEnK 0+0NxNEINL2+kPrpmuOwE4RJCuqIM3XpsT47GtfNtHPpQFPtvo1dVwBTQrxX7RYbTt55 jn/hLRJLxbtC6vafjhiZQQ3sdJSrgRo2yN6KW7MLygc6Dc/xQK++c+lB73wcxdmV3xae W8GDekai++p4jjeOL5aqWo2QHjIqvTpm01nyMQwSsY/FpM6UCH78lQUuh8UKTwHSrafI 4mWDC7iPErfSp/CeNNlEwdmKKwI7jihTsmyuE1Xpo0c5H3VJlbr0zalTn/Xw0cBHiEpY tH7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1789131428; x=1789736228; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=sosg5uQD+znETrHmJcgaZWMkG/+x7W8shGk8HBCGWmk=; b=CqtZfUJDLB5pzXZOLVBmqTz9sq3ZCJLOmoJXbqW0RlmD9+qAcrWKqtZq1R4VkPDO1a grNQmNGJ9JTSdI81HW7yx4udqBGPlLTjpnqZ+WkVNjwxKZXLRovokTceUCDjFOdILVHW kv9qMRXuxhr5x/ezavmt84fUVeR9Q7UYP+zXj8CpU5xOS90K1xin6mRs06ce/esK3OWJ 4YehrHaB1cRcGi6nm4TelXZgyeZikOuRJxjbbkTTHYeq8P+zNmuAe5FCEv5/qPsNREv0 3Yfl6n0UVPFx584bW7GAb9g6cKv4nbQwsVStUUEVR5qK5Bq3nuEwthcQ/UrlJ3Icd4i3 6G0g== X-Gm-Message-State: AFuF++n+0drZUImKlGMO/9g37L5ysWLT9yTOtmntrgXeiBcC4ppIKKhc PGC5ugTmR51Tsw6M8/071qmvc18tEDGqKS+PBj9JOE4rtR+e1RbDBxHU0aamBD3eVXxSddeCWEP 4UBScVg== X-Gm-Gg: AYBFou3AosIHq9YGTW2iNPX92oLLBCl+tf7SW6cbn8ECoC4i4dwmZXPcMShc2SNHCFt 4GJkKmuYLm10sKyHTK+7xy+yEOI7lsjPWXvlq0D17t6gXR+2jwtZtbwoA/qk2k+lv2zXalLqIKG IsdK42xlF56/52sP6A+2rGYM9zT1G25E1I8rBrynGCZSs4Ba2vnQTEV/FITiUyCApV8ctYgvP5i gx6yLIwWkmroyOxmRhjdGE9BcLpmA8FeAmAuYYaxadNL19bCtK/k+iaEsHXUbkiQzulg+kAoYcm 0Kc7vk7pVyEpK3a2TgIstG54CfPDWszu4VOeFjDsqtbgk1G+qgWc3AcsbN/AOsuhGKoHmn0gTHO xPmVKwfxXpjrixL7UedkQvkbKuR7aoAxaMUM7m0npb3PTRMyhwFapfzSY833R6IJ0rm8+9jR0z1 OR4TXDHthd9A8BVlG3G9TQTS/ndkwKmL8hubsHsAm9dEWSp+3vdu2rbLTPO5UHSVKAlMQ/A8I47 bzBX0r4iEG9nhG7u4n2R7Vb7D+eEpFldeDI X-Received: by 2002:a17:902:ce02:b0:2c9:bd54:cf with SMTP id d9443c01a7336-2dd2c93436amr7077235ad.4.1789131428042; Fri, 11 Sep 2026 05:57:08 -0700 (PDT) Received: from google.com (164.210.142.34.bc.googleusercontent.com. [34.142.210.164]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-39d994cf9a6sm4819382a91.10.2026.09.11.05.57.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Sep 2026 05:57:07 -0700 (PDT) Date: Fri, 11 Sep 2026 12:57:00 +0000 From: Pranjal Shrivastava To: linux-nfs@vger.kernel.org, Trond Myklebust , Anna Schumaker Cc: Chuck Lever , Jeff Layton , linux-kernel@vger.kernel.org, Christoph Hellwig , Logan Gunthorpe , Jason Gunthorpe , linux-pci@vger.kernel.org, linux-rdma@vger.kernel.org, Shivaji Kant Subject: Re: [PATCH v6 0/5] nfs: modernize direct I/O path Message-ID: References: <20260814143255.861084-1-praan@google.com> Precedence: bulk X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260814143255.861084-1-praan@google.com> On Fri, Aug 14, 2026 at 02:32:50PM +0000, Pranjal Shrivastava wrote: > Modernize the NFS Direct I/O path as a preparatory step to enable PCI > Peer-to-Peer DMA (P2PDMA) support. Following feedback on the initial > RFC [1], the modernization and architectural changes are split into > different series. Additionally, based on the discussion in the v2 [2] > of this series, the migration of NFS Direct I/O to folios would be > handled in a separate follow-up series. > > Currently, NFS O_DIRECT relies on the legacy iov_iter_get_pages_alloc2() > API which does not support the pinning requirements for P2P memory. > The implementation moves NFS to the modern iov_iter_extract_pages() API. > Gentle ping on this series. (I realized that I sent it close to the merge window, Apologies). Please let me know if anything else needs to be done for this.. [...] > > [v6] > - Fixed double unpin bugs pointed out by Sashiko: > https://sashiko.dev/#/patchset/20260810195040.2877784-1-praan%40google.com > - Added R-bs from Christoph (due since v4) > > [v5] > - https://lore.kernel.org/all/20260810195040.2877784-1-praan@google.com/ > - Fixed an iov_iter_revert oops in nfs_direct_extract_pages(). > - Fixed a refcount underflow in nfs_direct_release_pages() during > swap-over-NFS by ensuring we do not call put_page() on unpinned memory. > - Rebased on fs-next > [...] Thanks, Praan