提交 b5418383 编写于 作者: T Trond Myklebust

NFS: do_setlk(): don't flush caches when we have a delegation

Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
上级 0f38b873
......@@ -602,7 +602,8 @@ static int do_setlk(struct file *filp, int cmd, struct file_lock *fl)
* This makes locking act as a cache coherency point.
*/
nfs_sync_mapping(filp->f_mapping);
nfs_zap_caches(inode);
if (!nfs_have_delegation(inode, FMODE_READ))
nfs_zap_caches(inode);
out:
return status;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册