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

This commit is contained in:
cinap_lenrek 2015-07-26 13:55:51 +02:00
parent 6617c63a37
commit 23f7840056

View file

@ -895,7 +895,8 @@ mntrahread(Mntrah *rah, Chan *c, uchar *buf, long len, vlong off)
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;