git: 9front

Download patch

ref: 177c5e761c4b7abe624159fd8fd428c7e25b0f7b
parent: e7fe1e3dc2875bbdf42ab1711778beb0299c6bb9
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sun Jul 26 09:55:51 EDT 2015

devmnt: dont reset readahead window when requested offset still has pending rpc

--- a/sys/src/9/port/devmnt.c
+++ b/sys/src/9/port/devmnt.c
@@ -895,7 +895,8 @@
 		return 0;
 	if(off != rah->off){
 		rah->off = off;
-		rah->seq = 0;
+		if(rahfindrpc(rah, off) == nil)
+			rah->seq = 0;
 	}
 	rah->off += len;
 	rah->seq += len;
--