From 713beb6d423144456a458c7bb984a29ae70b3a9e Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Tue, 16 Aug 2016 18:06:22 +0200 Subject: [PATCH] devmnt: fix mistake in mntrahread() mntrahread() had the prefetch window condition wrong so it would very agressively prefetch ignoring the prefetch window. --- sys/src/9/port/devmnt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/src/9/port/devmnt.c b/sys/src/9/port/devmnt.c index e6bbd02dc..96b627eb6 100644 --- a/sys/src/9/port/devmnt.c +++ b/sys/src/9/port/devmnt.c @@ -897,7 +897,7 @@ mntrahread(Mntrah *rah, Chan *c, uchar *buf, long len, vlong off) if(rah->seq >= 2*c->iounit){ w = (off / c->iounit) * c->iounit; e = w + rah->seq; - for(o = w; w < e; o += c->iounit){ + for(o = w; o < e; o += c->iounit){ if(rahfindrpc(rah, o) != nil) continue;