OSDN Git Service

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 68f6bf1..8d2642f 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;