diff options
| author | cinap_lenrek <cinap_lenrek@felloff.net> | 2015-07-26 13:55:51 +0200 |
|---|---|---|
| committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2015-07-26 13:55:51 +0200 |
| commit | 23f78400561e0172a55e1fad8172a848d9cafab6 (patch) | |
| tree | a1de27697d7d8c05207440c51a6afdebca56d14a | |
| parent | 6617c63a374f7211b41252d3957e8a89061b8a49 (diff) | |
| download | plan9front-23f78400561e0172a55e1fad8172a848d9cafab6.tar.xz | |
devmnt: dont reset readahead window when requested offset still has pending rpc
| -rw-r--r-- | sys/src/9/port/devmnt.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/src/9/port/devmnt.c b/sys/src/9/port/devmnt.c index 18bea77bd..1fec71ec0 100644 --- a/sys/src/9/port/devmnt.c +++ b/sys/src/9/port/devmnt.c @@ -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; |
