Commit edc05fc1 authored by Trond Myklebust's avatar Trond Myklebust

NFS: reduce latency by using conditional rescheduling in nfs_scan_list

Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
parent dce34ce2
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment