From: bobijam Date: Mon, 29 Jun 2009 10:39:12 +0000 (+0000) Subject: Branch b1_8 X-Git-Tag: v1_8_2_01~1^2~284 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=47afd17928376af69c32a540bd06f73287fa6113;p=fs%2Flustre-release.git Branch b1_8 b=17197 roll back this patch, it causes lbugs. --- diff --git a/lustre/llite/rw.c b/lustre/llite/rw.c index 79bc040..e89e320 100644 --- a/lustre/llite/rw.c +++ b/lustre/llite/rw.c @@ -1901,12 +1901,9 @@ static void ras_update(struct ll_sb_info *sbi, struct inode *inode, if (zero) { /* check whether it is in stride I/O mode*/ if (!index_in_stride_window(index, ras, inode)) { - if (ras->ras_consecutive_stride_requests++ == 0) - ras_update_stride_detector(ras, index); - else - ras_stride_reset(ras); ras_reset(ras, index); ras->ras_consecutive_pages++; + ras_stride_reset(ras); GOTO(out_unlock, 0); } else { ras->ras_consecutive_pages = 0;