From: Trond Myklebust Date: Sun, 17 Jun 2007 20:02:34 +0000 (-0400) Subject: NFS: reduce latency by using conditional rescheduling in nfs_scan_list X-Git-Tag: v2.6.23-rc1~1073^2~101 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=edc05fc1c24ba49dae585da1b2a22686f0b221f0;p=linux-2.6 NFS: reduce latency by using conditional rescheduling in nfs_scan_list Signed-off-by: Trond Myklebust --- diff --git a/fs/nfs/pagelist.c b/fs/nfs/pagelist.c index 68f6bf1220..8d2642f24b 100644 --- a/fs/nfs/pagelist.c +++ b/fs/nfs/pagelist.c @@ -429,7 +429,8 @@ int nfs_scan_list(struct nfs_inode *nfsi, goto out; } } - + /* for latency reduction */ + cond_resched_lock(&nfsi->req_lock); } out: return res;