diff options
author | cinap_lenrek <cinap_lenrek@gmx.de> | 2013-08-05 04:21:34 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@gmx.de> | 2013-08-05 04:21:34 +0200 |
commit | 684cf70857e78a209a794c6a699e7022c7c5ab0c (patch) | |
tree | 665db4ec5b248c7f69a2c07af60f434be2426485 /sys/src/cmd/rio/fsys.c | |
parent | 1df707a0b2aaddb750fb707ae413dc67a19027a3 (diff) |
rio: make sure flush replies are send only *after* the request got flushed or was replied
due to the xfid handlers clearing flushtag too early, xfidflush might respond too early
causing spurious replies send later by the handler. now, we clear the flushtag in
filsysrespond *after* the reply was send. xfidflush will wait for us on the active
qlock.
Diffstat (limited to 'sys/src/cmd/rio/fsys.c')
-rw-r--r-- | sys/src/cmd/rio/fsys.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/src/cmd/rio/fsys.c b/sys/src/cmd/rio/fsys.c index fe4d186e4..f4fea7723 100644 --- a/sys/src/cmd/rio/fsys.c +++ b/sys/src/cmd/rio/fsys.c @@ -270,6 +270,7 @@ filsysrespond(Filsys *fs, Xfid *x, Fcall *t, char *err) fprint(2, "rio:->%F\n", t); free(x->buf); x->buf = nil; + x->flushtag = -1; return x; } |