]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
NFS: reduce latency by using conditional rescheduling in nfs_scan_list
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Sun, 17 Jun 2007 20:02:34 +0000 (16:02 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 11 Jul 2007 03:40:27 +0000 (23:40 -0400)
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/pagelist.c

index 68f6bf1220061d9fa12f0bd641786d1485b67f8e..8d2642f24b8fae44603873612c37614e6985e2f4 100644 (file)
@@ -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;