提交 19352456 编写于 作者: D Dirk Mueller 提交者: Trond Myklebust

NFSv3: fix sync_retry in direct i/o NFS

 Only do a sync_retry if the memcmp failed.
Signed-off-by: NDirk Mueller <dmueller@suse.com>
Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
上级 fba3bad4
...@@ -481,7 +481,7 @@ static ssize_t nfs_direct_write_seg(struct inode *inode, ...@@ -481,7 +481,7 @@ static ssize_t nfs_direct_write_seg(struct inode *inode,
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;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册