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>
This commit is contained in:
committed by
Trond Myklebust
parent
80f4236886
commit
8d8928d879
@@ -228,6 +228,9 @@ struct nfs_server {
|
||||
unsigned short mountd_port;
|
||||
unsigned short mountd_protocol;
|
||||
struct rpc_wait_queue uoc_rpcwaitq;
|
||||
|
||||
/* XDR related information */
|
||||
unsigned int read_hdrsize;
|
||||
};
|
||||
|
||||
/* Server capabilities */
|
||||
|
||||
Reference in New Issue
Block a user