소스 검색

NFS: reduce latency by using conditional rescheduling in nfs_scan_list

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Trond Myklebust 18 년 전
부모
커밋
edc05fc1c2
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      fs/nfs/pagelist.c

+ 2 - 1
fs/nfs/pagelist.c

@@ -429,7 +429,8 @@ int nfs_scan_list(struct nfs_inode *nfsi,
 					goto out;
 					goto out;
 			}
 			}
 		}
 		}
-
+		/* for latency reduction */
+		cond_resched_lock(&nfsi->req_lock);
 	}
 	}
 out:
 out:
 	return res;
 	return res;