Browse Source

NFSv3: fix sync_retry in direct i/o NFS

 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>
Dirk Mueller 19 years ago
parent
commit
1935245655
1 changed files with 1 additions and 1 deletions
  1. 1 1
      fs/nfs/direct.c

+ 1 - 1
fs/nfs/direct.c

@@ -481,7 +481,7 @@ retry:
 		if (wdata->verf.committed != NFS_FILE_SYNC) {
 		if (wdata->verf.committed != NFS_FILE_SYNC) {
 			need_commit = 1;
 			need_commit = 1;
 			if (memcmp(&first_verf.verifier, &wdata->verf.verifier,
 			if (memcmp(&first_verf.verifier, &wdata->verf.verifier,
-					sizeof(first_verf.verifier)));
+					sizeof(first_verf.verifier)))
 				goto sync_retry;
 				goto sync_retry;
 		}
 		}