mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
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:
parent
80f4236886
commit
8d8928d879
4 changed files with 15 additions and 2 deletions
|
@ -608,6 +608,7 @@ struct nfs_pgio_args {
|
|||
__u32 count;
|
||||
unsigned int pgbase;
|
||||
struct page ** pages;
|
||||
unsigned int replen; /* used by read */
|
||||
const u32 * bitmask; /* used by write */
|
||||
enum nfs3_stable_how stable; /* used by write */
|
||||
};
|
||||
|
@ -618,9 +619,9 @@ struct nfs_pgio_res {
|
|||
__u32 count;
|
||||
__u32 op_status;
|
||||
int eof; /* used by read */
|
||||
unsigned int replen; /* used by read */
|
||||
struct nfs_writeverf * verf; /* used by write */
|
||||
const struct nfs_server *server; /* used by write */
|
||||
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue