diff options
author | cinap_lenrek <cinap_lenrek@gmx.de> | 2013-11-02 17:54:42 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@gmx.de> | 2013-11-02 17:54:42 +0100 |
commit | bcad0cd4e631ef321dca17ffa49c8ecdd30cb652 (patch) | |
tree | 055b4f0a188ac6d637b0702686d0834c61aa96de /sys/src/cmd/rio/fsys.c | |
parent | 837918ee5e391fc0429654135c4a828f96f6bc3d (diff) |
rio: huge simplification of flush handling
xfidflush() now uses a simpler way to flush another xfid.
when we can send to Xfid.c channel, we know that the
xfid is completed. so all xfidflush() needs todo is to
do an alt sending to both Xfid.c and Xfid.flushc.
once the send to Xfid.c succeeds, we know the xfid is gone
and we can respond to the flush request.
theres no need to keep track of flush state anymore. so
Xfid.active and Xfid.flushing can be removed.
note, that it is ok to respond normally to a currently
flushed request.
Diffstat (limited to 'sys/src/cmd/rio/fsys.c')
-rw-r--r-- | sys/src/cmd/rio/fsys.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/src/cmd/rio/fsys.c b/sys/src/cmd/rio/fsys.c index 41db21b96..5e680ea85 100644 --- a/sys/src/cmd/rio/fsys.c +++ b/sys/src/cmd/rio/fsys.c @@ -270,8 +270,6 @@ filsysrespond(Filsys *fs, Xfid *x, Fcall *t, char *err) free(x->buf); x->buf = nil; x->flushtag = -1; - if(x->flushing) - recv(x->flushc, nil); /* wakeup flushing xfid */ return x; } |