summaryrefslogtreecommitdiffstats
path: root/fs/lockd
diff options
context:
space:
mode:
authorDave Wysochanski <dwysocha@redhat.com>2023-03-09 13:58:52 -0500
committerAnna Schumaker <Anna.Schumaker@Netapp.com>2023-03-14 13:47:43 -0400
commit9c88ea00fef03031ce6554531e89be82f6a42835 (patch)
tree0068ea23351c59aed934f1c53fc475f23f0517cb /fs/lockd
parenteeac8ede17557680855031c6f305ece2378af326 (diff)
downloadlinux-stable-9c88ea00fef03031ce6554531e89be82f6a42835.tar.gz
linux-stable-9c88ea00fef03031ce6554531e89be82f6a42835.tar.bz2
linux-stable-9c88ea00fef03031ce6554531e89be82f6a42835.zip
NFS: Fix /proc/PID/io read_bytes for buffered reads
Prior to commit 8786fde8421c ("Convert NFS from readpages to readahead"), nfs_readpages() used the old mm interface read_cache_pages() which called task_io_account_read() for each NFS page read. After this commit, nfs_readpages() is converted to nfs_readahead(), which now uses the new mm interface readahead_page(). The new interface requires callers to call task_io_account_read() themselves. In addition, to nfs_readahead() task_io_account_read() should also be called from nfs_read_folio(). Fixes: 8786fde8421c ("Convert NFS from readpages to readahead") Link: https://lore.kernel.org/linux-nfs/CAPt2mGNEYUk5u8V4abe=5MM5msZqmvzCVrtCP4Qw1n=gCHCnww@mail.gmail.com/ Signed-off-by: Dave Wysochanski <dwysocha@redhat.com> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'fs/lockd')
0 files changed, 0 insertions, 0 deletions