shithub: riscv

Download patch

ref: 713beb6d423144456a458c7bb984a29ae70b3a9e
parent: f3b27fd889ff31531ecd69bbfd1013c9ba57814e
author: cinap_lenrek <[email protected]>
date: Tue Aug 16 14:06:22 EDT 2016

devmnt: fix mistake in mntrahread()

mntrahread() had the prefetch window condition wrong so
it would very agressively prefetch ignoring the prefetch
window.

--- a/sys/src/9/port/devmnt.c
+++ b/sys/src/9/port/devmnt.c
@@ -897,7 +897,7 @@
 	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;