NFS: Don't check lock owner compatibility in writes unless file is locked
If we're doing buffered writes, and there is no file locking involved, then we don't have to worry about whether or not the lock owner information is identical. By relaxing this check, we ensure that fork()ed child processes can write to a page without having to first sync dirty data that was written by the parent to disk. Reported-by: NQuentin Barnes <qbarnes@gmail.com> Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com> Tested-by: NQuentin Barnes <qbarnes@gmail.com>
Showing
想要评论请 注册 或 登录