summaryrefslogtreecommitdiffstats
path: root/fs/nfs
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2007-06-17 16:02:34 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2007-07-10 23:40:27 -0400
commitedc05fc1c24ba49dae585da1b2a22686f0b221f0 (patch)
treea31d11b97d4207b63019866481292528aaa1666b /fs/nfs
parentdce34ce298d85b81630401f4feb4bd7ac77fe9c7 (diff)
downloadop-kernel-dev-edc05fc1c24ba49dae585da1b2a22686f0b221f0.zip
op-kernel-dev-edc05fc1c24ba49dae585da1b2a22686f0b221f0.tar.gz
NFS: reduce latency by using conditional rescheduling in nfs_scan_list
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs')
-rw-r--r--fs/nfs/pagelist.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/nfs/pagelist.c b/fs/nfs/pagelist.c
index 68f6bf1..8d2642f 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;
OpenPOWER on IntegriCloud