devmnt: dont reset readahead window when requested offset still has pending rpc
This commit is contained in:
parent
6617c63a37
commit
23f7840056
|
@ -895,6 +895,7 @@ mntrahread(Mntrah *rah, Chan *c, uchar *buf, long len, vlong off)
|
||||||
return 0;
|
return 0;
|
||||||
if(off != rah->off){
|
if(off != rah->off){
|
||||||
rah->off = off;
|
rah->off = off;
|
||||||
|
if(rahfindrpc(rah, off) == nil)
|
||||||
rah->seq = 0;
|
rah->seq = 0;
|
||||||
}
|
}
|
||||||
rah->off += len;
|
rah->off += len;
|
||||||
|
|
Loading…
Reference in a new issue