summaryrefslogtreecommitdiff
path: root/sys/src/9
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2016-04-01 14:12:50 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2016-04-01 14:12:50 +0200
commit0237b583906353b78f9cbf2194dc083e82b8ba23 (patch)
treefbb3863743d9bafcbba19ebaecef29a755eac488 /sys/src/9
parente93f7885dad16245a4f772d4305cfc00ba5d8a44 (diff)
kernel: always clunk closed fids asynchronously, regardless of caching
Diffstat (limited to 'sys/src/9')
-rw-r--r--sys/src/9/port/chan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/9/port/chan.c b/sys/src/9/port/chan.c
index 7e87b9110..24eb72d70 100644
--- a/sys/src/9/port/chan.c
+++ b/sys/src/9/port/chan.c
@@ -520,7 +520,7 @@ cclose(Chan *c)
return;
if(devtab[c->type]->dc == L'M')
- if((c->flag&(CRCLOSE|CCACHE)) == CCACHE)
+ if((c->flag&COPEN) == 0 || (c->flag&(CRCLOSE|CCACHE)) == CCACHE)
if((c->qid.type&(QTEXCL|QTMOUNT|QTAUTH)) == 0)
if((clunkq.nqueued - clunkq.nclosed) < 64){
closechanq(c);