diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2007-06-17 22:02:34 +0200 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2007-07-11 05:40:27 +0200 |
commit | edc05fc1c24ba49dae585da1b2a22686f0b221f0 (patch) | |
tree | a31d11b97d4207b63019866481292528aaa1666b /fs/nfs/pagelist.c | |
parent | NFS: Prevent integer overflow in nfs_scan_list() (diff) | |
download | linux-edc05fc1c24ba49dae585da1b2a22686f0b221f0.tar.xz linux-edc05fc1c24ba49dae585da1b2a22686f0b221f0.zip |
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/pagelist.c')
-rw-r--r-- | fs/nfs/pagelist.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/nfs/pagelist.c b/fs/nfs/pagelist.c index 68f6bf122006..8d2642f24b8f 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; |