]> git.baikalelectronics.ru Git - kernel.git/commit
NFSv3: Improve NFSv3 performance when server returns no post-op attributes
authorTrond Myklebust <trond.myklebust@primarydata.com>
Mon, 5 Mar 2018 17:03:00 +0000 (12:03 -0500)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Sun, 30 Sep 2018 19:35:17 +0000 (15:35 -0400)
commit6bfdeeb4d79eb7da822cfbd9b02517afbc9d62d8
tree4d512261635e3b1560160af32cf30e04fdc0f643
parent6aa319c9c3d4ee0835e3201b8887b02a8ee61631
NFSv3: Improve NFSv3 performance when server returns no post-op attributes

When the server fails to return post-op attributes, the client's
attempt to place read data directly in the page cache fails, and
so we have to do an extra copy in order to realign the data with
page borders.
This patch attempts to detect servers that don't return post-op
attributes on read (e.g. for pNFS) and adjusts the placement
calculation accordingly.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/nfs3proc.c
fs/nfs/nfs3xdr.c
include/linux/nfs_fs_sb.h
include/linux/nfs_xdr.h