Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp1834580pxb; Thu, 7 Oct 2021 16:34:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx0E2LQ8fS9vBdwdmz6TRRXrxgzdu1yBXYD6DGZLkYj+d2XizJel0Hn74CV7h+EFzvOtn+5 X-Received: by 2002:a17:906:3f90:: with SMTP id b16mr9192682ejj.432.1633649647096; Thu, 07 Oct 2021 16:34:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633649647; cv=none; d=google.com; s=arc-20160816; b=rrJzii8jO4Qxl5LcvwjvS1ry63BcWflT+hTL6ZFR7W2SMtkyun4bVKt9Oej/9ZIWiV lqL6hqcAABf9hF3P8JjMnxnFKSMRbQ22VCPb2H+8knVDaUSl6k6OVZ0tJajN/CDTsVkK XHL0hswxdD9ktCn5/pT5u5M+ElZGs59Ib4V9CDIsYqNm5FfXQGKxI40fhUX73PwPv2IA r7oqZV2xM65tuobNDYU+fY2L+MHYuGkmLCcjPi8ILUymmwVP+S6ACN8Wzaahtm7PFDTQ xBE1cLDwJMnjqnuePL3YyNTnzXaggnHjA3AkgIl8gLKnr87g0X1h1EVI5yKlsJ4tUp3z C2NA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=iTO3S+R+06LA5TW4HMUsIIUwq9GFfftwKljdE4zhZkE=; b=WzIHjkNNZudrKjHVId6siupGklEsKe7Dq9s7MpJdumJl+bQjg8M80mIiD0NmWrKWVi 1QRQUmzg6Pn3zzX+APCS4LsLUB5YhnhqA0B5CTBaJJ8gFHGql3lG5SxskxzD810pzF6u MBRDL/b69at2lQeLgaYJIsb3dphoe4cyP8QNdk7BRoVD4hYwWwCdEEwB+mcfUxCkhkpv PUpBap+c+xVHZBqpShgi3awFdMFcqsF1F6hGmB2b5PuyJQ0FiLUWSmsrbYNRA8rJcZc4 wV+3v9Rt5G2+MtbMaFGPSoY+tk3feqA6rkLY6DMxUrZw1ljltBGLKTQbNfFVfDUD5Pr9 H7mQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=L+0FOoGp; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u19si958814ejo.211.2021.10.07.16.33.38; Thu, 07 Oct 2021 16:34:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=L+0FOoGp; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232604AbhJGXfa (ORCPT + 99 others); Thu, 7 Oct 2021 19:35:30 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:33593 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229778AbhJGXfa (ORCPT ); Thu, 7 Oct 2021 19:35:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1633649615; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc; bh=iTO3S+R+06LA5TW4HMUsIIUwq9GFfftwKljdE4zhZkE=; b=L+0FOoGp0g6OkhESuzTOKKvYPkWVmzx4ENF9ew1OdjHWXJHM9fL68XJVQ4GprkMSat40qZ zEjjL2v+9/hZokbmq/ykmP98Ki3jIh3XavxLO+/Wpmz6Du5lHTlDuGRdK1sAISEC9h3bZT 1fZ5onoo4/cTTQRodxsHk4aADqV1hzA= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-598-9_I7UE_FMsi_LoZyB4Q_lA-1; Thu, 07 Oct 2021 19:33:34 -0400 X-MC-Unique: 9_I7UE_FMsi_LoZyB4Q_lA-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 9A60D1090064; Thu, 7 Oct 2021 23:32:12 +0000 (UTC) Received: from dwysocha.rdu.csb (unknown [10.22.8.139]) by smtp.corp.redhat.com (Postfix) with ESMTPS id AF4BF6A902; Thu, 7 Oct 2021 23:32:10 +0000 (UTC) From: Dave Wysochanski To: Trond Myklebust , Anna Schumaker Cc: Matthew Wilcox , David Howells , Chuck Lever , linux-cachefs@redhat.com, linux-nfs@vger.kernel.org Subject: [PATCH 0/1] Convert nfs_readpages() to nfs_readahead() Date: Thu, 7 Oct 2021 19:32:07 -0400 Message-Id: <1633649528-1321-1-git-send-email-dwysocha@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org This patch converts nfs_readpages() to nfs_readahead(). It was applied on top of the set I just posted [1] plus Chuck's v1 patch to convert dfprintks to tracepoints [2]. It is being tested on top of these patches at BakeAThon against various servers, cthon, xfstests, and my fscache unit tests. Note that Chuck may post a v3 of his patch and this would need rebased on that patch. Note that a nfs-utils patch will need to be done to properly account for the changed NFSIOS_* counters. I would consider this a "nice to have" for this cycle but I wanted to get it out there sooner than later. As far as I know this has been an outstanding item for the NFS client for a while and the fscache fallback IO API clears the way for this patch. [1] https://marc.info/?l=linux-nfs&m=163364580324243&w=2 [2] https://marc.info/?l=linux-nfs&m=163345402812426&w=2 Dave Wysochanski (1): NFS: Convert from readpages() to readahead() fs/nfs/file.c | 2 +- fs/nfs/nfstrace.h | 2 +- fs/nfs/read.c | 21 +++++++++++++++------ include/linux/nfs_fs.h | 3 +-- include/linux/nfs_iostat.h | 6 +++--- 5 files changed, 21 insertions(+), 13 deletions(-) -- 1.8.3.1