Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=edc05fc1c24ba49dae585da1b2a22686f0b221f0
Commit:     edc05fc1c24ba49dae585da1b2a22686f0b221f0
Parent:     dce34ce298d85b81630401f4feb4bd7ac77fe9c7
Author:     Trond Myklebust <[EMAIL PROTECTED]>
AuthorDate: Sun Jun 17 16:02:34 2007 -0400
Committer:  Trond Myklebust <[EMAIL PROTECTED]>
CommitDate: Tue Jul 10 23:40:27 2007 -0400

    NFS: reduce latency by using conditional rescheduling in nfs_scan_list
    
    Signed-off-by: Trond Myklebust <[EMAIL PROTECTED]>
---
 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 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;
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to