From 0237b583906353b78f9cbf2194dc083e82b8ba23 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Fri, 1 Apr 2016 14:12:50 +0200 Subject: [PATCH] kernel: always clunk closed fids asynchronously, regardless of caching --- sys/src/9/port/chan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);