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

NFS: reduce latency by using conditional rescheduling in nfs_scan_list

Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
上级 dce34ce2
...@@ -429,7 +429,8 @@ int nfs_scan_list(struct nfs_inode *nfsi, ...@@ -429,7 +429,8 @@ int nfs_scan_list(struct nfs_inode *nfsi,
goto out; goto out;
} }
} }
/* for latency reduction */
cond_resched_lock(&nfsi->req_lock);
} }
out: out:
return res; return res;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册