2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-11-20 08:38:24 +08:00

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>
This commit is contained in:
Dirk Mueller 2006-02-01 12:19:47 -05:00 committed by Trond Myklebust
parent fba3bad488
commit 1935245655

View File

@ -481,7 +481,7 @@ retry:
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;
}