fix race condition of the CCACHE flag by clearing the flag in

attachimage() instead of temporarily reseting in pio().
This commit is contained in:
cinap_lenrek 2012-01-12 12:54:45 +01:00
parent 75e1ef0ab6
commit 577d31ab13
2 changed files with 2 additions and 5 deletions

View file

@ -287,6 +287,7 @@ attachimage(int type, Chan *c, ulong base, ulong len)
lock(i);
incref(c);
c->flag &= ~CCACHE;
i->c = c;
i->type = c->type;
i->qid = c->qid;