fix race condition of the CCACHE flag by clearing the flag in
attachimage() instead of temporarily reseting in pio().
This commit is contained in:
parent
75e1ef0ab6
commit
577d31ab13
2 changed files with 2 additions and 5 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue