pnfs: track last_offset for layoutcommit
iozone tests were failing intermittently against emc-2 due to out-of-order LAYOUTCOMMITs that both specified new_last_offset nfs41_open_state now maintains a cached value of the last_offset, and avoids sending it with LAYOUTCOMMIT unless the new last_offset is greater than the cached offset. this cached value is initialized on open/delegation, and updated on setattr for size Signed-off-by: Casey Bodley <cbodley@citi.umich.edu>
This commit is contained in:
parent
93a907082c
commit
6872152317
4 changed files with 50 additions and 15 deletions
|
|
@ -135,6 +135,7 @@ typedef struct __nfs41_open_state {
|
|||
LONG ref_count;
|
||||
uint32_t share_access;
|
||||
uint32_t share_deny;
|
||||
uint64_t pnfs_last_offset; /* for layoutcommit */
|
||||
|
||||
struct {
|
||||
nfs41_delegation_state *state;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue