From: Dirk Mueller Date: Wed, 1 Feb 2006 17:19:47 +0000 (-0500) Subject: NFSv3: fix sync_retry in direct i/o NFS X-Git-Tag: v2.6.16-rc2~3 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1935245655996ca4d14e687c3a100d2e2bbdc78d;p=linux-2.6 NFSv3: fix sync_retry in direct i/o NFS Only do a sync_retry if the memcmp failed. Signed-off-by: Dirk Mueller Signed-off-by: Trond Myklebust --- diff --git a/fs/nfs/direct.c b/fs/nfs/direct.c index 10ae377e68..04ab2fc360 100644 --- a/fs/nfs/direct.c +++ b/fs/nfs/direct.c @@ -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; }