Skip to content
Snippets Groups Projects
Commit 19352456 authored by Dirk Mueller's avatar Dirk Mueller Committed by Trond Myklebust
Browse files

NFSv3: fix sync_retry in direct i/o NFS


 Only do a sync_retry if the memcmp failed.

Signed-off-by: default avatarDirk Mueller <dmueller@suse.com>
Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
parent fba3bad4
No related branches found
No related tags found
No related merge requests found
......@@ -481,7 +481,7 @@ static ssize_t nfs_direct_write_seg(struct inode *inode,
if (wdata->verf.committed != NFS_FILE_SYNC) {
need_commit = 1;
if (memcmp(&first_verf.verifier, &wdata->verf.verifier,
sizeof(first_verf.verifier)));
sizeof(first_verf.verifier)))
goto sync_retry;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment