check write verifiers on COMMIT
we were previously only verifying that the server didn't reboot between WRITEs. COMMIT returns a verifier that needs to be checked as well Signed-off-by: Casey Bodley <cbodley@citi.umich.edu>
This commit is contained in:
parent
d646e5c58c
commit
f435606a16
8 changed files with 49 additions and 19 deletions
|
|
@ -217,7 +217,12 @@ retry_write:
|
|||
}
|
||||
if (committed == UNSTABLE4) {
|
||||
dprintf(1, "sending COMMIT for offset=%d and len=%d\n", args->offset, len);
|
||||
status = nfs41_commit(session, file, args->offset, len, 1);
|
||||
status = nfs41_commit(session, file, args->offset, len, 1, &verf);
|
||||
if (status)
|
||||
goto out;
|
||||
|
||||
if (!verify_commit(&verf))
|
||||
goto retry_write;
|
||||
}
|
||||
out:
|
||||
args->out_len = len;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue