Skip to content

Commit

Permalink
NFSv3: fix sync_retry in direct i/o NFS
Browse files Browse the repository at this point in the history
 Only do a sync_retry if the memcmp failed.

 Signed-off-by: Dirk Mueller <dmueller@suse.com>
 Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
  • Loading branch information
Dirk Mueller authored and Trond Myklebust committed Feb 1, 2006
1 parent fba3bad commit 1935245
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/nfs/direct.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 1935245

Please sign in to comment.